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

🐛 Cannot escape forward slash in RegEx #449

Open
MarcusOtter opened this issue Jul 11, 2023 · 1 comment
Open

🐛 Cannot escape forward slash in RegEx #449

MarcusOtter opened this issue Jul 11, 2023 · 1 comment
Labels
confirmed bug 🦋 Something isn't working

Comments

@MarcusOtter
Copy link
Owner

Describe the bug

In a title regex, you can not match / by escaping it like this \/ because we just check for 2 slashes to find a regex.

Steps to reproduce the bug

  1. Write a regex like /he\/him/
  2. Only he gets matched

Expected behavior

he/him should get matched

@MarcusOtter MarcusOtter added the confirmed bug 🦋 Something isn't working label Jul 11, 2023
@MarcusOtter
Copy link
Owner Author

MarcusOtter commented Jul 11, 2023

As a workaround, one can use [\x2F] in place of \/ and it should work.

e.g /he[\x2F]him/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed bug 🦋 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant