Clean up regexen; use common regex for numbers. Close gh-862.

This commit is contained in:
Richard Gibson
2012-07-22 22:23:32 -04:00
committed by Dave Methvin
parent 74cc5b0984
commit c14a6b385f
8 changed files with 28 additions and 26 deletions

View File

@@ -1,9 +1,9 @@
var nodeHook, boolHook, fixSpecified,
rclass = /[\n\t\r]/g,
rclass = /[\t\r\n]/g,
rreturn = /\r/g,
rtype = /^(?:button|input)$/i,
rfocusable = /^(?:button|input|object|select|textarea)$/i,
rclickable = /^a(?:rea)?$/i,
rclickable = /^a(?:rea|)$/i,
rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
getSetAttribute = jQuery.support.getSetAttribute;