make Matcher method public on Pattern
This commit is contained in:
parent
8e064ada23
commit
e0f7c152b5
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue