Skip to content

Commit

Permalink
add "notContains" operator
Browse files Browse the repository at this point in the history
  • Loading branch information
yangyansong-adbe committed Aug 25, 2020
1 parent 5fa3ef9 commit ceeb83f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/SwiftRulesEngine/ConditionEvaluator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public extension ConditionEvaluator {
addComparisonOperator(operation: "startsWith", type: String.self, closure: { $0.starts(with: $1) })
addComparisonOperator(operation: "endsWith", type: String.self, closure: { $0.hasSuffix($1) })
addComparisonOperator(operation: "contains", type: String.self, closure: { $0.contains($1) })
addComparisonOperator(operation: "notContains", type: String.self, closure: { !$0.contains($1) })

addComparisonOperator(operation: "greaterThan", type: Int.self, closure: >)
addComparisonOperator(operation: "greaterThan", type: Double.self, closure: >)
Expand Down

0 comments on commit ceeb83f

Please sign in to comment.