Describe the bug
Trying to bring up the web app in Safari results in SyntaxError: Invalid regular expression: invalid group specifier name error in Console. Works fine in Chrome.
To Reproduce
do npm i prettier-sql in your project
start the project
Open the page in Safari
View Develop /Web Inspector/Console. Observe:
SyntaxError: Invalid regular expression: invalid group specifier name
Describe the bug Trying to bring up the web app in Safari results in SyntaxError: Invalid regular expression: invalid group specifier name error in Console. Works fine in Chrome. To Reproduce
npm i prettier-sql
in your projectSyntaxError: Invalid regular expression: invalid group specifier name
Expected behavior App compiles and works fine.
Additional context The regex that seems to be breaking it is
/(?<=[^\s]+) (AS )?(?=[^\s]+,?$)/i
in Formatter.ts Per https://caniuse.com/js-regexp-lookbehind, LookBehind is not supported in Safari