aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes.js
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2012-07-22 22:23:32 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-07-22 22:23:32 -0400
commitc14a6b385fa419ce67f115e853fb4a89d8bd8fad (patch)
treec3214778d8bd142388c73b0c6a899372fd95a950 /src/attributes.js
parent74cc5b0984335532ab272b8286566000c4bf3daf (diff)
downloadjquery-c14a6b385fa419ce67f115e853fb4a89d8bd8fad.tar.gz
jquery-c14a6b385fa419ce67f115e853fb4a89d8bd8fad.zip
Clean up regexen; use common regex for numbers. Close gh-862.
Diffstat (limited to 'src/attributes.js')
-rw-r--r--src/attributes.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/attributes.js b/src/attributes.js
index c3890c459..e10ddced7 100644
--- a/src/attributes.js
+++ b/src/attributes.js
@@ -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;