ufal / vallex3.0

Generátor prohlížeče slovníku Vallex 3.0
0 stars 0 forks source link

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

Open Ansa211 opened 3 years ago

Ansa211 commented 3 years ago

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 commented 3 years ago

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