make validate public
This commit is contained in:
parent
adcff8e948
commit
f04653407c
|
@ -23,7 +23,7 @@ public struct Pattern {
|
||||||
return Pattern(s)
|
return Pattern(s)
|
||||||
}
|
}
|
||||||
|
|
||||||
func validate()throws {
|
public func validate()throws {
|
||||||
_ = try NSRegularExpression(pattern: self.pattern, options: [])
|
_ = try NSRegularExpression(pattern: self.pattern, options: [])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue