We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 341f873 commit 0d20b15Copy full SHA for 0d20b15
src/index.ts
@@ -506,8 +506,7 @@ export function $match<P extends ParamData>(
506
const decoders = re.keys.map((key) => {
507
if (decode && (key.modifier === "+" || key.modifier === "*")) {
508
const { prefix = "", suffix = "", separator = suffix + prefix } = key;
509
- const re = new RegExp(escape(separator), "g");
510
- return (value: string) => value.split(re).map(decode);
+ return (value: string) => value.split(separator).map(decode);
511
}
512
513
return decode || NOOP_VALUE;
0 commit comments