brynary/webrat

View on GitHub
lib/webrat/selenium/selenium_extensions.js

Summary

Maintainability
A
0 mins
Test Coverage
PatternMatcher.strategies['evalregex'] = function(regexpString) {
  this.regexp = eval(regexpString);
  this.matches = function(actual) {
    return this.regexp.test(actual);
  };
};