Skip to content

Commit a0cefab

Browse files
committed
fix(server): make '*' not match '/' in redirect wildcards; update test
1 parent 8c9a173 commit a0cefab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test/java/org/example/server/RedirectFilterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void no_matching_rule_calls_next_in_chain() {
7070
void wildcard_matching_docs_star() {
7171
var p = RedirectRulesLoader.compileSourcePattern("/docs/*");
7272
assertThat(p.matcher("/docs/test").matches()).isTrue();
73-
assertThat(p.matcher("/docs/any/path").matches()).isTrue();
73+
assertThat(p.matcher("/docs/any/path").matches()).isFalse();
7474
assertThat(p.matcher("/doc/test").matches()).isFalse();
7575
}
7676

0 commit comments

Comments
 (0)