Skip to content

Commit 4705518

Browse files
Revise the version regex in GsonVersionDiagnosticsTest. (#2228)
Before we can release 2.10 we must support two-digit components. Additionally, there's no reason to require a patch number (2.10.0 rather than 2.10).
1 parent 7bca5c4 commit 4705518

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gson/src/test/java/com/google/gson/functional/GsonVersionDiagnosticsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* @author Inderjeet Singh
3636
*/
3737
public class GsonVersionDiagnosticsTest extends TestCase {
38-
private static final Pattern GSON_VERSION_PATTERN = Pattern.compile("(\\(GSON \\d\\.\\d\\.\\d)(?:[-.][A-Z]+)?\\)$");
38+
private static final Pattern GSON_VERSION_PATTERN = Pattern.compile("(\\(GSON \\d\\.\\d+(\\.\\d)?)(?:[-.][A-Z]+)?\\)$");
3939

4040
private Gson gson;
4141

0 commit comments

Comments
 (0)