Skip to content

Commit 3317e59

Browse files
committed
Fix minify unescaped caret in character class
1 parent 9d0dbcd commit 3317e59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Providers/CodeActionsProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ async function optimizeRegex(edit: vscode.WorkspaceEdit, regexNode: Node, uri: v
253253
edit.delete(uri, minifyRange);
254254
break;
255255
case 'backslash_class':
256-
if (/^\\\\[ #$'()*+,.89<?ABGKNORXYZ^yz{|}]$/.test(minifyNode.text)) { // MUST be mutually exclusive with the regex below! // Error: Overlapping ranges are not allowed!
256+
if (/^\\\\[ #$'()*+,.89<?ABGKNORXYZyz{|}]$/.test(minifyNode.text)) { // MUST be mutually exclusive with the regex below! // Error: Overlapping ranges are not allowed!
257257
edit.delete(
258258
uri,
259259
new vscode.Range(

0 commit comments

Comments
 (0)