You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firefox says "Uncaught SyntaxError: export declarations may only appear at top level of a module". When the code is reindented, it appears that the class Render is never closed.
But in fact, this is the result of another syntax error, in higlightText() of Render, line 1175 :
const regex = new RegExp('(' + search.trim() + ')(?![^<]*>[^<>]*${originalTextFoundByRegex}`);
An interpolation is opened with "`" but never closed (or closed but never opened, in this case).
The obvious fix is to replace the quote with a backquote :
const regex = new RegExp('(' + search.trim() + `)(?![^<]*>[^<>]*${originalTextFoundByRegex}`);
The text was updated successfully, but these errors were encountered:
The problem is there is no direct equivalence in the code.
It seems to be a total reinterpretation (by Babel?) of highlightText where the regex declaration and its modification are fused, but with several errors.
As I'm not familiar with TS, I don't know how to fix this, sorry.
"slimselect.es.js" has a syntax error.
Firefox says "Uncaught SyntaxError: export declarations may only appear at top level of a module". When the code is reindented, it appears that the class Render is never closed.
But in fact, this is the result of another syntax error, in higlightText() of Render, line 1175 :
const regex = new RegExp('(' + search.trim() + ')(?![^<]*>[^<>]*${originalTextFoundByRegex}`);
An interpolation is opened with "`" but never closed (or closed but never opened, in this case).
The obvious fix is to replace the quote with a backquote :
const regex = new RegExp('(' + search.trim() + `)(?![^<]*>[^<>]*${originalTextFoundByRegex}`);
The text was updated successfully, but these errors were encountered: