Text treated as regexp for buttons

This commit is contained in:
Ross Kaffenberger 2008-12-17 18:30:47 -05:00
parent a5e6af2fe7
commit 567f5ada0e
1 changed files with 1 additions and 1 deletions

View File

@ -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