Skip to content

Commit c25d59b

Browse files
committed
update readabilty
1 parent e17e45a commit c25d59b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test/java/com/uid2/operator/StatsCollectorVerticleTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void allValidPathsAllowed(Vertx vertx, VertxTestContext testContext) throws Inte
112112
var messages = getMessages();
113113
for(String endpoint: validEndpoints) {
114114
String withoutVersion = endpoint;
115-
if (endpoint.matches("^/v\\d+/.*")) {
115+
if (endpoint.startsWith("/v2/") || endpoint.startsWith("/v3/")) {
116116
withoutVersion = endpoint.substring(endpoint.indexOf("/", 1) + 1);
117117
} else if (endpoint.startsWith("/")) {
118118
withoutVersion = endpoint.substring(1);

0 commit comments

Comments
 (0)