Permalink
Browse files

regexes are no longer functions

  • Loading branch information...
1 parent 17c0029 commit 015af925e903826948e2963477b6bf188d2be7b5 @Floby committed Dec 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 public/javascripts/watcher.js
@@ -129,7 +129,7 @@ watcher.setFilter = function setFilter(table, form) {
var match = regex.checked ? readRegExp(filter.value) :
new RegExp(filter.value, 'gi');
var nb = watcher.filter(table, function(str) {
- if(match(str)) {
+ if(match.test(str)) {
return str.replace(match, "<strong>$&</strong>");
}
})

0 comments on commit 015af92

Please sign in to comment.