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

iContainsWord does not exclude whitespace when matching #254

Closed
geb-bot opened this Issue Jun 26, 2013 · 3 comments

Comments

Projects
None yet
2 participants
@geb-bot

geb-bot commented Jun 26, 2013

Originally created by Chung B.

When trying to use iContainsWord('Text') against a string such as ' Text', iContainsWord does not return results by ignoring whitespace.

From the mailing list:
http://markmail.org/message/4mbdvhfahlltbw6y
Marcin Erdmann
"From a quick peak at the code I can tell that there is a bug around how the matchers are being created ($ and ^ are swapped)."

Also looking at the code, I noticed containsWord() also uses a similar pattern ($ and ^ ordering)

@geb-bot

This comment has been minimized.

geb-bot commented Jul 27, 2013

Originally posted by Jason Cahoon.

a fix for this is available in geb pull request #43 from [this commit|https://github.com/measlyweasel/geb/commit/be47f0314dfc9431665ea4bd358410760442889b]

@geb-bot

This comment has been minimized.

geb-bot commented Jul 28, 2013

Originally posted by Marcin Erdmann.

Fixed in geb/geb@be47f03, thanks Jason.

@geb-bot

This comment has been minimized.

geb-bot commented Jul 28, 2013

Resolved

@geb-bot geb-bot added the Bug label Apr 12, 2015

@geb-bot geb-bot added this to the 0.9.1 milestone Apr 12, 2015

@geb-bot geb-bot closed this Apr 12, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment