Skip to content

Commit 192ab15

Browse files
committed
Fix clearing highlights when a regex error occurs in JS mode.
1 parent 70af7a1 commit 192ab15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/src/helpers/BrowserSolver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default class BrowserSolver {
2929
try {
3030
this._regex = regex = new RegExp(o.pattern, o.flags);
3131
} catch(e) {
32-
return this._onRegExComplete({id:"regexparse", name: e.name, message: e.message});
32+
return this._onRegExComplete({id:"regexparse", name: e.name, message: e.message}, null, mode);
3333
}
3434

3535
if (window.Worker) {

0 commit comments

Comments
 (0)