Skip to content

Commit 77ab977

Browse files
chore: apply automated updates
1 parent 87de157 commit 77ab977

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/regexp.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import { expandGroupDelimiters } from "./_group-delimiters.ts";
2-
import { hasSegmentWildcard, replaceSegmentWildcards } from "./_segment-wildcards.ts";
2+
import {
3+
hasSegmentWildcard,
4+
replaceSegmentWildcards,
5+
} from "./_segment-wildcards.ts";
36

47
export function routeToRegExp(route: string = "/"): RegExp {
58
const groupExpanded = expandGroupDelimiters(route);

test/regexp.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ function normalizeGroups(groups?: Record<string, string>) {
1414

1515
const normalized: Record<string, string> = {};
1616
for (const key in groups) {
17-
const normalizedKey = normalizeUnnamedGroupKey(key).replace(/^_(\d+)$/, "$1");
17+
const normalizedKey = normalizeUnnamedGroupKey(key).replace(
18+
/^_(\d+)$/,
19+
"$1",
20+
);
1821
normalized[normalizedKey] = groups[key];
1922
}
2023

0 commit comments

Comments
 (0)