Text treated as regexp for buttons
This commit is contained in:
parent
a5e6af2fe7
commit
567f5ada0e
@ -191,7 +191,7 @@ module Webrat
|
||||
if text_or_regexp.is_a?(Regexp)
|
||||
"evalregex:#{text_or_regexp.inspect}"
|
||||
else
|
||||
text_or_regexp
|
||||
"evalregex:/#{text_or_regexp}/"
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user