We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5236f2 commit 7563eb7Copy full SHA for 7563eb7
1 file changed
Sources/StringContainsOperators/StringContainsOperators.swift
@@ -98,7 +98,8 @@ public extension String {
98
/// - Returns: `true` if the string contains the `StringPredicate`, `false` otherwise.
99
func contains(_ predicate: StringPredicate) -> Bool {
100
101
- let strategy = SearchStrategyMaker.make(predicate: predicate)
102
- return strategy.evaluate(string: self)
+ SearchStrategyMaker
+ .make(predicate: predicate)
103
+ .evaluate(string: self)
104
}
105
0 commit comments