Skip to content

Commit 126f1b9

Browse files
committed
fix: correct regex
1 parent 21e517f commit 126f1b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ export function isExclude(name: string, exclude?: FilterPattern): boolean {
243243
return false
244244
}
245245

246-
const ESCAPE_PARENTHESES_REGEX = /[(?:)]/g
246+
const ESCAPE_PARENTHESES_REGEX = /[()]/g
247247

248248
export function escapeSpecialChars(str: string): string {
249249
return str.replace(ESCAPE_PARENTHESES_REGEX, '\\$&')

0 commit comments

Comments
 (0)