Skip to content

Commit 2d4de88

Browse files
committed
fix
1 parent 3158732 commit 2d4de88

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/types/types.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ export const MatchingStrategies = {
5757
LAST: 'last',
5858
}
5959

60-
export type MatchingStrategies =
61-
typeof MatchingStrategies[keyof typeof MatchingStrategies]
60+
export type MatchingStrategies = typeof MatchingStrategies[keyof typeof MatchingStrategies]
6261

6362
export type Filter = string | Array<string | string[]>
6463

src/utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ function addTrailingSlash(url: string): string {
2626
}
2727

2828
function validateUuid4(uuid: string): boolean {
29-
const regexExp =
30-
/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/gi
29+
const regexExp = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/gi
3130
return regexExp.test(uuid)
3231
}
3332

0 commit comments

Comments
 (0)