Skip to content

Commit 6ac7280

Browse files
kulbakinSergioCrisostomo
authored andcommitted
fixes validator parameters allowing spaces in them
git cherry-pick a7342dc
1 parent fa1acb1 commit 6ac7280

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Source/Forms/Form.Validator.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ var InputValidator = this.InputValidator = new Class({
6969
Element.Properties.validators = {
7070

7171
get: function(){
72-
return (this.get('data-validators') || this.className).clean().split(' ');
72+
return (this.get('data-validators') || this.className).clean().replace(/'(\\.|[^'])*'|"(\\.|[^"])*"/g, function(match){
73+
return match.replace(' ', '\\x20');
74+
}).split(' ');
7375
}
7476

7577
};

0 commit comments

Comments
 (0)