-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Use more inclusive regexp for matching file paths #227
Comments
Alternative: https://github.com/slevithan/xregexp |
Looks like we can use this syntax directly with : |
It should be like this:
|
Per this discussion over on lbry-desktop: lbryio/lbry-desktop#2777 (comment)
As long as you are in ES2018 or later land, you can use the capture group
\p{L}
to represent all letters and\p{N}
all numbers. So you could use this (untested) regexp instead:/^[\p{L}\p{N}_@()-][\p{L}\p{N}_.@()-\s]+.(jpeg|jpg|png|bpm|webp)$/
The text was updated successfully, but these errors were encountered: