Fix for failed to parse versions like 2.3.1-git3282e51 29/15829/1
authorSam Hague <shague@redhat.com>
Fri, 27 Feb 2015 16:50:52 +0000 (11:50 -0500)
committerSam Hague <shague@redhat.com>
Fri, 27 Feb 2015 16:50:52 +0000 (11:50 -0500)
commit1d62e3e014b84bed8bebc0dee4fc27042289bddf
tree38aee73aa4648656aa30556f357631eb2eb98c11
parent15cffe307e3ee20591019bc21bded2d947683c2b
Fix for failed to parse versions like 2.3.1-git3282e51

Existing code was matching using the pattern major.minor.patch and would fail if anythign extra was in the string. This was because the code used an exact match across the whole string. Chaning to only find the major.minor.patch pattern fixes the issue by ingoring the extra characters.

Change-Id: I1cefb545bdc571a18727851a791a47a6c6158afa
Signed-off-by: Sam Hague <shague@redhat.com>
library/src/main/java/org/opendaylight/ovsdb/lib/notation/Version.java