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

RichText causes errors on WebKit | Invalid regex #5589

Open
susnux opened this issue May 13, 2024 · 0 comments
Open

RichText causes errors on WebKit | Invalid regex #5589

susnux opened this issue May 13, 2024 · 0 comments
Labels
1. to develop Accepted and waiting to be taken care of bug Something isn't working feature: richtext Related to the richtext component

Comments

@susnux
Copy link
Contributor

susnux commented May 13, 2024

The regex for mentions is using lookbehind which is not supported on all iOS versions / Safari versions we support.
It only works on 16.4+ but we support 15+.

The problem is within the regular expression:

const MENTION_START = /\B(?<![^a-z0-9_\-@.'\s])/.source

@susnux susnux added bug Something isn't working 1. to develop Accepted and waiting to be taken care of feature: richtext Related to the richtext component labels May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of bug Something isn't working feature: richtext Related to the richtext component
Projects
None yet
Development

No branches or pull requests

1 participant