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

preg_match fails when string has "/" in it #5

Closed
akizor opened this issue Mar 12, 2018 · 2 comments
Closed

preg_match fails when string has "/" in it #5

akizor opened this issue Mar 12, 2018 · 2 comments

Comments

@akizor
Copy link

akizor commented Mar 12, 2018

loilo/fuse/src/Bitap/regex_search.php: 7

Example trace

  Fuse\Bitap\regex_search("R. Aazyol", "Atelier Richard Woodman Burbridge/Harrods", " +")
  vendor/loilo/fuse/src/Bitap/Bitap.php : 63
@loilo
Copy link
Owner

loilo commented Mar 12, 2018

Thanks for reporting, I'll take a look. 👍

@loilo loilo closed this as completed in 40eb6d1 Mar 12, 2018
@loilo
Copy link
Owner

loilo commented Mar 12, 2018

Okay, I simply forgot to escape slashes explicitely. Previously piped the search pattern through preg_quote which obviously doesn't catch slashes.

Should now be fixed in 3.2.3.

Thanks again for reporting. :)

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

No branches or pull requests

2 participants