Merge pull request #221 from siuying/evaluator-open
make Evaluator open class
This commit is contained in:
commit
c9b6e2e6de
|
@ -11,8 +11,8 @@ import Foundation
|
|||
/**
|
||||
* Evaluates that an element matches the selector.
|
||||
*/
|
||||
public class Evaluator {
|
||||
init () {}
|
||||
open class Evaluator {
|
||||
public init () {}
|
||||
|
||||
/**
|
||||
* Test if the element meets the evaluator's requirements.
|
||||
|
|
|
@ -23,7 +23,7 @@ public struct Pattern {
|
|||
return Pattern(s)
|
||||
}
|
||||
|
||||
func validate()throws {
|
||||
public func validate()throws {
|
||||
_ = try NSRegularExpression(pattern: self.pattern, options: [])
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue