make Matcher method public on Pattern

This commit is contained in:
Daniel 2018-05-07 11:43:16 -04:00
parent 8e064ada23
commit e0f7c152b5
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ public struct Pattern {
_ = try NSRegularExpression(pattern: self.pattern, options: []) _ = try NSRegularExpression(pattern: self.pattern, options: [])
} }
func matcher(in text: String) -> Matcher { public func matcher(in text: String) -> Matcher {
do { do {
let regex = try NSRegularExpression(pattern: self.pattern, options: []) let regex = try NSRegularExpression(pattern: self.pattern, options: [])
let nsString = NSString(string: text) let nsString = NSString(string: text)