Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Negative look behinds are not supported by firefox #4

Open
loeffel-io opened this issue Nov 17, 2019 · 5 comments
Open

Negative look behinds are not supported by firefox #4

loeffel-io opened this issue Nov 17, 2019 · 5 comments

Comments

@loeffel-io
Copy link

No description provided.

@derhuerst
Copy link
Owner

platform support for negative lookbehind in RegExp

Currently Firefox, Safari and Edge don't support this.

We should be able to change e.g. [/(?<!\w)bay(?=$|\s|,)/g, 'bayern'] to [/([^\w])bay(?=$|\s|,)/g, '$1 bayern'], right?

@loeffel-io
Copy link
Author

@derhuerst Not sure, sorry

@loeffel-io
Copy link
Author

still need this fix

@derhuerst
Copy link
Owner

still need this fix

I'll happily merge a PR that fixes this! 😉

@loeffel-io
Copy link
Author

loeffel-io commented Aug 24, 2020

sadly i have no time to fix it but got some infos:

  • negative look behinds are now supported by firefox but still not for safari
  • workaround could be provided by clear up the transformationsRaw and transformationsNormalized arrays and replace the package via resolutions:
"resolutions": {
  "db-stations-autocomplete/tokenize-db-station-name": "file:packages/tokenize-db-station-name"
},

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

No branches or pull requests

2 participants