Fixing my actual regexp checker

This commit is contained in:
Paul Buser 2014-01-23 21:57:12 -05:00
parent 30d8eb8256
commit e958c1293d

View file

@ -15,4 +15,4 @@ module.exports.scriptMatchesEventPrereqs = scriptMatchesEventPrereqs = (script,
return false if ap.containingRegexp? and v?.search(new RegExp(ap.containingRegexp)) == -1
return false if ap.notContainingRegexp? and v?.search(new RegExp(ap.notContainingRegexp)) != -1
return true
return true