Skip to content

Commit

Permalink
Revise the version regex in GsonVersionDiagnosticsTest. (#2228)
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
eamonnmcmanus committed Oct 25, 2022
1 parent 7bca5c4 commit 4705518
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -35,7 +35,7 @@
* @author Inderjeet Singh
*/
public class GsonVersionDiagnosticsTest extends TestCase {
private static final Pattern GSON_VERSION_PATTERN = Pattern.compile("(\\(GSON \\d\\.\\d\\.\\d)(?:[-.][A-Z]+)?\\)$");
private static final Pattern GSON_VERSION_PATTERN = Pattern.compile("(\\(GSON \\d\\.\\d+(\\.\\d)?)(?:[-.][A-Z]+)?\\)$");

private Gson gson;

Expand Down

0 comments on commit 4705518

Please sign in to comment.