pgsql-ast-parser icon indicating copy to clipboard operation
pgsql-ast-parser copied to clipboard

[Safari] Invalid regular expression: invalid group specifier name

Open choco opened this issue 4 years ago • 1 comments

I'm trying the library int he browser but it seems that a bunch of the regexes are not compatible with Safari and I get the error above while trying to load the package.

choco avatar Mar 30 '21 16:03 choco

Ouch. Yes, there are quite a lot of lookbehind expressions in the lexer, and it would seem that Safari doesnt like them.

The lexer is a very sensitive thing: Changing it significantly could mean rewriting the parser significantly, and I have no real idea how to stop using lookbehinds without doing that 😶

So I acklowledge this issue to be a thing (and I will mention it in the readme). But to be honnest, browser compatibility not really being a priority to me, I am very usure wether if I will consider fixing it anytime soon 😯 ... This issue might resolve itself when Safari implements lookbehinds.

PR are open if someone sees a trick, or wants to tackle the problem.

oguimbal avatar Mar 31 '21 07:03 oguimbal

I opened a PR in https://github.com/oguimbal/pgsql-ast-parser/pull/112

ArniDagur avatar Aug 22 '22 08:08 ArniDagur