SyntaxError: Invalid regular expression — stack overflow
-
Hi Frank,
I’ve got an issue I’ve not been able to solve. Odd thing is, it was not occurring previously. I was getting a JQuery issue, so I added JQuery.js back into the JS Exclusions, along with a few others. Full exclusions are:But somewhere along the way, I started getting these errors:
Uncaught SyntaxError: Invalid regular expression: /(^|\.)cfs1(\.|$)/: Stack overflow at RegExp.exec (<anonymous>) at RegExp.test (native) at Object.remove (https://cdn.couragemyloveclothing.com/wp-content/cache/autoptimize/js/autoptimize_a897aaf4351095e5983cc2c9a6daf9c8.js:12:35273) at Object.remove (https://cdn.couragemyloveclothing.com/wp-content/cache/autoptimize/js/autoptimize_a897aaf4351095e5983cc2c9a6daf9c8.js:12:35541) at Object.remove (https://cdn.couragemyloveclothing.com/wp-content/cache/autoptimize/js/autoptimize_a897aaf4351095e5983cc2c9a6daf9c8.js:12:35541) ... (etc. above repeats many times) remove @ autoptimize_a897aaf….js:12 ... (etc)autoptimize_a897aaf….js:12 Uncaught SyntaxError: Invalid regular expression: /(^|\.)cfs1(\.|$)/: Stack overflow at RegExp.exec (<anonymous>) at RegExp.test (native) at Object.remove (https://cdn.couragemyloveclothing.com/wp-content/cache/autoptimize/js/autoptimize_a897aaf4351095e5983cc2c9a6daf9c8.js:12:35273) at Object.remove (https://cdn.couragemyloveclothing.com/wp-content/cache/autoptimize/js/autoptimize_a897aaf4351095e5983cc2c9a6daf9c8.js:12:35541) at Object.remove (https://cdn.couragemyloveclothing.com/wp-content/cache/autoptimize/js/autoptimize_a897aaf4351095e5983cc2c9a6daf9c8.js:12:35541) ... (etc.)I’ve tried clearing Cache, and Autoptimize, but error continues. Looking in the Autoptimize JS file that’s referred to, I was unable to retermine what original JS file is causing the issue, for exclusion.
Any help would be greatly appreciated.
Thanks,
Jonathan
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘SyntaxError: Invalid regular expression — stack overflow’ is closed to new replies.