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

Check for empty Tag filter string #251

Merged
merged 2 commits into from
Jul 7, 2022

Conversation

magikid
Copy link
Contributor

@magikid magikid commented Apr 26, 2022

If the filterString in TagFilter is an empty string, an exception
was being thrown because the code was expecting a non-empty string.
This checks if the string is non-empty and returns early if it is.

Issue: #250

If the `filterString` in `TagFilter` is an empty string, an exception
was being thrown because the code was expecting a non-empty string.
This checks if the string is non-empty and returns early if it is.

Issue: Behat#250
strlen is O(1) and mb_strlen is O(n).
@ciaranmcnulty ciaranmcnulty merged commit 01379b1 into Behat:master Jul 7, 2022
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

Successfully merging this pull request may close these issues.

3 participants