3 ms·
For that query, the Chrome developer tools console spits an error like so: >d.7527c434450544045365.js:1 Uncaught (in promise) SyntaxError: Invalid regular expr
by sys32768 3y ago
For that query, the Chrome developer tools console spits an error like so:
>d.7527c434450544045365.js:1 Uncaught (in promise) SyntaxError: Invalid regular expression: /^(https?://)?([\w\.-_]*\.)?notepad++\./: Nothing to repeat (at
- Svip 3y agoWas someone trying to be funny, to change a "notepad" search for "notepad++", forgetting that + has a specific meaning in regex? Same error occurs with a search for "notepad++", though, but not "notepad+", funnily enough.
- _8j50 3y agoLooks like a regex to detect notepad++ in a url that didn't escape the +'s? Weird, maybe a sponsorship thing
- jzig 3y agoYep they need to escape every character in the string not just the plus signs
- jzig 3y agoIf you set a breakpoint there, the value it is trying to replace is "Notepad++" rather than "notepad", gotten from the Heading of "http://www.notepad-plus-plus.org http://www.notepad-plus-plus.org" further up in the logic chain. Looks like the plus signs are incorrectly being added to the RegEx