mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-14 05:55:00 -04:00
Fix for fix for #133.
This commit is contained in:
parent
cba7807053
commit
2e9386ab70
1 changed files with 2 additions and 2 deletions
|
@ -10,9 +10,9 @@ module.exports.scriptMatchesEventPrereqs = scriptMatchesEventPrereqs = (script,
|
|||
return false if ap.greaterThanOrEqualTo? and not (v >= ap.greaterThanOrEqualTo)
|
||||
return false if ap.lessThan? and not (v < ap.lessThan)
|
||||
return false if ap.lessThanOrEqualTo? and not (v <= ap.lessThanOrEqualTo)
|
||||
return false if ap.containingString? and not v or v.search(ap.containingString) is -1
|
||||
return false if ap.containingString? and (not v or v.search(ap.containingString) is -1)
|
||||
return false if ap.notContainingString? and v?.search(ap.containingString) isnt -1
|
||||
return false if ap.containingRegexp? and not v or v.search(new RegExp(ap.containingRegexp)) is -1
|
||||
return false if ap.containingRegexp? and (not v or v.search(new RegExp(ap.containingRegexp)) is -1)
|
||||
return false if ap.notContainingRegexp? and v?.search(new RegExp(ap.notContainingRegexp)) isnt -1
|
||||
|
||||
return true
|
||||
|
|
Loading…
Add table
Reference in a new issue