This commit is contained in:
Nabil Chatbi 2016-12-27 20:42:48 +01:00
parent ec1064e158
commit ba3aabc335
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ public struct Pattern {
func matcher(in text: String) -> Matcher {
do {
let regex = try NCRegularExpression(pattern: self.pattern, options:[])
let nsString = NSString(text)
let nsString = NSString(string: text)
let results = regex.matches(in: text, range: NSRange(location: 0, length: nsString.length))
return Matcher(results,text)