Skip to content

Commit

Permalink
Core: fix code style (#2422)
Browse files Browse the repository at this point in the history
  • Loading branch information
bytestream committed Apr 12, 2022
1 parent eb88df0 commit 900a90b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core.js
Expand Up @@ -1032,7 +1032,10 @@ $.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 ) {
if (string === undefined) return "";
if ( string === undefined ) {
return "";
}

return string.replace( /([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g, "\\$1" );
},

Expand Down

0 comments on commit 900a90b

Please sign in to comment.