Skip to content

Commit 23df773

Browse files
Update RedirectRulesLoader.java
1 parent bb1caff commit 23df773

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/example/filter/redirect/RedirectRulesLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public static Pattern compileSourcePattern(String sourcePath) {
1515
String trimmed = sourcePath.trim();
1616

1717
if (trimmed.startsWith(REGEX_PREFIX)) {
18-
String rawRegex = trimmed.substring(REGEX_PREFIX.length());
18+
String rawRegex = trimmed.substring(REGEX_PREFIX.length()).strip();
1919
if (rawRegex.isBlank()) {
2020
throw new IllegalArgumentException("regex sourcePath must not be blank");
2121
}

0 commit comments

Comments
 (0)