We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc8147f commit 8c214e5Copy full SHA for 8c214e5
src/decorator/string/Matches.ts
@@ -11,7 +11,7 @@ export const MATCHES = 'matches';
11
export function matches(value: string, pattern: RegExp): boolean;
12
export function matches(value: string, pattern: string, modifiers: string): boolean;
13
export function matches(value: string, pattern: RegExp | string, modifiers?: string): boolean {
14
- return typeof value === 'string' && matchesValidator(value, (pattern as unknown) as any, modifiers);
+ return typeof value === 'string' && matchesValidator(value, pattern as unknown as any, modifiers);
15
}
16
17
/**
0 commit comments