mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-24 20:48:31 -07:00
14 lines
615 B
Diff
14 lines
615 B
Diff
support our versioning schemes
|
|
|
|
--- a/src/test/java/com/google/gson/functional/GsonVersionDiagnosticsTest.java
|
|
+++ b/src/test/java/com/google/gson/functional/GsonVersionDiagnosticsTest.java
|
|
@@ -35,7 +35,7 @@ import org.junit.Test;
|
|
public class GsonVersionDiagnosticsTest {
|
|
// We require a patch number, even if it is .0, consistent with https://semver.org/#spec-item-2.
|
|
private static final Pattern GSON_VERSION_PATTERN =
|
|
- Pattern.compile("(\\(GSON \\d\\.\\d+\\.\\d)(?:[-.][A-Z]+)?\\)$");
|
|
+ Pattern.compile("(\\(GSON \\d\\.\\d+\\.\\d)(?:[-.][A-Z]+|_[a-z]+[0-9]+)?\\)$");
|
|
|
|
private Gson gson;
|
|
|