Skip to content

Commit d5e0590

Browse files
committed
Allow ! in URLs
1 parent d343d75 commit d5e0590

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utility/router-utility.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function parseParams(pattern, uri) {
2525

2626
export function patternToRegExp(pattern) {
2727
if (pattern) {
28-
return new RegExp('^(|/)' + pattern.replace(/:[^\s/]+/g, '([\\w\u00C0-\u00D6\u00D8-\u00f6\u00f8-\u00ff-% &\'\.\(\)]+)') + '(|/)$');
28+
return new RegExp('^(|/)' + pattern.replace(/:[^\s/]+/g, '([\\w\u00C0-\u00D6\u00D8-\u00f6\u00f8-\u00ff-% &\'\.\(\)\!]+)') + '(|/)$');
2929
} else {
3030
return new RegExp('(^$|^/$)');
3131
}

0 commit comments

Comments
 (0)