make validate public

This commit is contained in:
Francis Chong 2022-06-02 14:42:25 +01:00
parent adcff8e948
commit f04653407c
1 changed files with 1 additions and 1 deletions

View File

@ -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: [])
} }