Merge pull request #221 from siuying/evaluator-open

make Evaluator open class
This commit is contained in:
Nabil Chatbi 2022-06-06 16:51:31 +02:00 committed by GitHub
commit c9b6e2e6de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -11,8 +11,8 @@ import Foundation
/** /**
* Evaluates that an element matches the selector. * Evaluates that an element matches the selector.
*/ */
public class Evaluator { open class Evaluator {
init () {} public init () {}
/** /**
* Test if the element meets the evaluator's requirements. * Test if the element meets the evaluator's requirements.

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