Fix button matching regexp
This commit is contained in:
parent
118cf0340a
commit
a99d785ea0
@ -102,7 +102,7 @@ module Webrat
|
|||||||
class ButtonField < Field
|
class ButtonField < Field
|
||||||
|
|
||||||
def matches_value?(value)
|
def matches_value?(value)
|
||||||
@element["value"] =~ /^\W*#{Regexp.escape(value.to_s)}\b*/i
|
@element["value"] =~ /^\W*#{Regexp.escape(value.to_s)}/i
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_param
|
def to_param
|
||||||
|
Loading…
Reference in New Issue
Block a user