Fix version pattern matching error.

Also add a unit test to test pattern matcher regex.

Bug: 29263344
Change-Id: I75ae37c4e58d650781c8878b31d3d5d34f6bf8e9
1 file changed