#148 ✓resolved
Zach Dennis

regular expression bug in field_labeled_locator

Reported by Zach Dennis | January 27th, 2009 @ 12:55 PM | in 0.4.5

The field_labeled_locator uses the following regular expression to match label text:


/^\W*#{Regexp.escape(@value.to_s)}\b/i

The problem here is the word boundary at the end of the regular expression. Word boundaries only match if the character immediately preceding it was a word character. This means labels like "License #" the following will fail because # is not a word character.

Here's a patch formulated on a short discussion with brynary in IRC. Github is having some "pushing" problems right now so here's the patch file.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Ruby Acceptance Testing for Web applications.

Shared Ticket Bins

People watching this ticket

Pages