Update RegexRule.swift

Set RegexRule to "open class" for allow subclassing in Swift 3
This commit is contained in:
Luidgi Gromat 2016-10-05 13:50:55 +02:00 committed by GitHub
parent 1efab45d38
commit bd70812422
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ import Foundation
/**
`RegexRule` is a subclass of Rule that defines how a regular expression is validated.
*/
public class RegexRule : Rule {
open class RegexRule : Rule {
/// Regular express string to be used in validation.
private var REGEX: String = "^(?=.*?[A-Z]).{8,}$"
/// String that holds error message.