Skip to content

Commit 064e7c8

Browse files
committed
Fixed issue with regex allowing ":va?lue" instead of just ":value?"
1 parent 82c7676 commit 064e7c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/utils/Path.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function encodeURLPath(path) {
1515
}
1616

1717
var paramCompileMatcher = /:([a-zA-Z_$][a-zA-Z0-9_$]*)|[*.()\[\]\\+|{}^$]/g;
18-
var paramInjectMatcher = /:([a-zA-Z_$?][a-zA-Z0-9_$?]*)|[*]/g;
18+
var paramInjectMatcher = /:([a-zA-Z_$][a-zA-Z0-9_$?]*[?]?)|[*]/g;
1919
var paramInjectTrailingSlashMatcher = /\/\/\?|\/\?/g;
2020
var queryMatcher = /\?(.+)/;
2121

0 commit comments

Comments
 (0)