Skip to content

Commit 1ba99b1

Browse files
committed
Remove unused capture group from WHITESPACE_REGEX
1 parent 1a8656e commit 1ba99b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lexer/regexUtil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const escapeRegExp = (string: string) => string.replace(/[.*+?^${}()|[\]\
55

66
export const NULL_REGEX = /^(?!)/; // zero-width negative lookahead, matches nothing
77

8-
export const WHITESPACE_REGEX = /(\s+)/uy;
8+
export const WHITESPACE_REGEX = /\s+/uy;
99

1010
export const patternToRegex = (pattern: string): RegExp => new RegExp(`(?:${pattern})`, 'uy');
1111

0 commit comments

Comments
 (0)