Skip to content

Commit

Permalink
Fix validation for WYSIWYG editors
Browse files Browse the repository at this point in the history
  • Loading branch information
bartmathijssen committed Aug 10, 2020
1 parent 79bed39 commit 7167352
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.js
Expand Up @@ -1032,7 +1032,7 @@ $.extend( $.validator, {
// meta-characters that should be escaped in order to be used with JQuery
// as a literal part of a name/id or any selector.
escapeCssMeta: function( string ) {
return string.replace( /([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g, "\\$1" );
return (string + "").replace( /([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g, "\\$1" );
},

idOrName: function( element ) {
Expand Down

0 comments on commit 7167352

Please sign in to comment.