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.
|
* 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.
|
||||||
|
|
|
@ -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