Skip to content

Commit 371f2cd

Browse files
fix: update version pattern to include release candidates (#2132)
* fix: update version pattern to include release candidates * chore: format
1 parent 3867796 commit 371f2cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

google-http-client/src/test/java/com/google/api/client/http/HttpRequestTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,8 @@ public LowLevelHttpResponse execute() throws IOException {
11311131
@Test
11321132
public void testVersion() {
11331133
assertNotNull("version constant should not be null", HttpRequest.VERSION);
1134-
Pattern semverPattern = Pattern.compile("\\d+\\.\\d+\\.\\d+(-sp\\.\\d+)?(-SNAPSHOT)?");
1134+
Pattern semverPattern =
1135+
Pattern.compile("\\d+\\.\\d+\\.\\d+(-sp\\.\\d+)?(-rc\\d+)?(-SNAPSHOT)?");
11351136
assertTrue(semverPattern.matcher(HttpRequest.VERSION).matches());
11361137
}
11371138

0 commit comments

Comments
 (0)