Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

regexp with negative lookbehind leads to empty list of lexemes in Safari #2

Open
Ansa211 opened this issue Oct 5, 2021 · 1 comment

Comments

@Ansa211
Copy link
Collaborator

Ansa211 commented Oct 5, 2021

The Safari Web browser (I am told this is the primary choice for Mac users) does not understand regexes with negative look behind. We have at least one in our code (lexeme.js, line 1), which leads to the bug described below.

These StackOverflow answers may be useful:
https://stackoverflow.com/questions/67332407/how-to-not-match-given-prefix-in-regex-without-negative-lookbehind
https://stackoverflow.com/questions/641407/javascript-negative-lookbehind-equivalent


Thanks to @stranak for reporting this issue:

V Safari na macu se nenačte datový soubor, appka je prázdná. Přikládám, co mi browser k tomu řekl.
Screenshot 2021-10-04 at 22 00 11

@Ansa211 Ansa211 changed the title regexp with negative lookbehind does not break in Safari regexp with negative lookbehind leads to empty list of lexemes in Safari Oct 5, 2021
@Ansa211
Copy link
Collaborator Author

Ansa211 commented Oct 5, 2021

The particular regex causing the issue observed by @stranak was introduced in 9fcfb5f, so it only applies to version 4.0 of the website and not to the earlier versions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant