Skip to content

Commit

Permalink
refactor: format code with latest Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
NoNameProvided committed Nov 20, 2021
1 parent 6c50113 commit 6a57621
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ _This changelog follows the [keep a changelog][keep-a-changelog]_ format to main

### [0.13.2](https://github.com/typestack/class-validator/compare/v0.13.1...v0.13.2) (2021-11-20)

> __NOTE:__ This version fixes a security vulnerability allowing denial of service attacks with a specially crafted request payload.
> **NOTE:** This version fixes a security vulnerability allowing denial of service attacks with a specially crafted request payload.
> Please update as soon as possible.
#### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/decorator/string/Matches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const MATCHES = 'matches';
export function matches(value: string, pattern: RegExp): boolean;
export function matches(value: string, pattern: string, modifiers: string): boolean;
export function matches(value: string, pattern: RegExp | string, modifiers?: string): boolean {
return typeof value === 'string' && matchesValidator(value, (pattern as unknown) as any, modifiers);
return typeof value === 'string' && matchesValidator(value, pattern as unknown as any, modifiers);
}

/**
Expand Down

0 comments on commit 6a57621

Please sign in to comment.