-
Notifications
You must be signed in to change notification settings - Fork 823
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce insensitive property into RegexValidator #7620
- Loading branch information
1 parent
034fe2e
commit ffd4bf2
Showing
2 changed files
with
10 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -429,7 +429,8 @@ QUnit.test("Regex number validator, Bug#1775", function(assert) { | |
assert.equal(validator.validate(null), null, "Parse correctly null"); | ||
}); | ||
QUnit.test("Regex case insensitive, Bug#7620", function(assert) { | ||
var validator = new RegexValidator("[email protected]/i"); | ||
const validator = new RegexValidator("[email protected]"); | ||
validator.insensitive = true; | ||
validator.text = "Error"; | ||
assert.equal(validator.validate("abc").error.text, "Error", "#1"); | ||
assert.equal(validator.validate("[email protected]").error.text, "Error", "#2"); | ||
|