3 ms·
I get a SyntaxError when embedding it: > SyntaxError: nothing to repeat The line seems to be this: > return l?l[2]?decodeURIComponent(l[2].replace(/+/g,' '))
by franciscop 8y ago
I get a SyntaxError when embedding it:
> SyntaxError: nothing to repeat
The line seems to be this:
> return l?l[2]?decodeURIComponent(l[2].replace(/+/g,' ')):void 0:void 0},
Might it be related to AdBlock? I'm using Firefox with AdBlockPlus, Cookiebro and the default Privacy settings turned up in Firefox.
Edit: oops, it's clearly coming from the regex: /+/g → /\+/g
https://stackoverflow.com/a/6288596 https://stackoverflow.com/a/6288596
- davidkuennen 8y agoThanks for sharing! Will look into it.
- franciscop 8y agoSee the edit, I found the bug and the solution :)
- davidkuennen 8y agoGreat! Thanks.
- davidkuennen 8y agoIs now fixed.