Restored /g flag to rspaces; Adds unit tests; Supplements #9008
This commit is contained in:
parent
e5f4ec846c
commit
ca367674c1
2 changed files with 17 additions and 1 deletions
|
@ -4,7 +4,7 @@ var hasOwn = Object.prototype.hasOwnProperty,
|
|||
rnamespaces = /\.(.*)$/,
|
||||
rformElems = /^(?:textarea|input|select)$/i,
|
||||
rperiod = /\./g,
|
||||
rspaces = /\s+/,
|
||||
rspaces = /\s+/g,
|
||||
rescape = /[^\w\s.|`]/g,
|
||||
fcleanup = function( nm ) {
|
||||
return nm.replace(rescape, "\\$&");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue