SPR-6280 - PathVariable resolution does not work properly
This commit is contained in:
@@ -412,7 +412,7 @@ public class AntPathMatcher implements PathMatcher {
|
||||
else if (bracketCount2 < bracketCount1) {
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
return pattern2.length() - pattern1.length();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ class AntPathStringMatcher {
|
||||
|
||||
private static final Pattern GLOB_PATTERN = Pattern.compile("\\?|\\*|\\{([^/]+?)\\}");
|
||||
|
||||
private static final String DEFAULT_VARIABLE_PATTERN = "(.*)";
|
||||
private static final String DEFAULT_VARIABLE_PATTERN = "([^\\.]*)";
|
||||
|
||||
private final Pattern pattern;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user