MatchChecker
public protocol MatchChecker: MatchBehavior
The simplest matcher – one that finds if the match exists or not
-
hasMatches(in:)
Default implementationreturns true if pattern exits in the given string
Default Implementation
Declaration
Swift
func hasMatches(in: String) -> Bool