* feat: add ios and rn source * fix(ios): remove testing keys * fix(tracker): change default path
10 lines
322 B
Swift
10 lines
322 B
Swift
import Foundation
|
|
|
|
extension String {
|
|
|
|
func contains(regex: String) -> Bool {
|
|
guard let regex = try? NSRegularExpression(pattern: regex) else { return false }
|
|
let range = NSRange(location: 0, length: self.utf16.count)
|
|
return regex.firstMatch(in: self, options: [], range: range) != nil
|
|
}
|
|
}
|