mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 22:13:32 -04:00
More for #133.
This commit is contained in:
parent
068f798d58
commit
a5065d273d
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ module.exports.scriptMatchesEventPrereqs = scriptMatchesEventPrereqs = (script,
|
|||
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.notContainingString? and v?.search(ap.containingString) isnt -1
|
||||
return false if ap.notContainingString? and v?.search(ap.notContainingString) isnt -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue