iContainsWord does not exclude whitespace when matching #254

Closed
geb-bot opened this Issue Jun 26, 2013 · 3 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
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
geb-bot commented Jul 28, 2013

Originally posted by Marcin Erdmann.

Fixed in geb/geb@be47f03, thanks Jason.

@geb-bot
geb-bot commented Jul 28, 2013

Resolved

@geb-bot geb-bot added the Bug label Apr 12, 2015
@erdi erdi was assigned by geb-bot 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