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