aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-09-22 09:16:28 -0400
committerjeresig <jeresig@gmail.com>2010-09-22 09:16:28 -0400
commit9dc6e0c572b9c809a3a4c123071d96d48a01dd1c (patch)
tree70bb5a22bee73b049d07469a86479d64e185ac43 /src/attributes.js
parent19b5d9e874bbd97d03d9e0561a70711e2bf91fcb (diff)
downloadjquery-9dc6e0c572b9c809a3a4c123071d96d48a01dd1c.tar.gz
jquery-9dc6e0c572b9c809a3a4c123071d96d48a01dd1c.zip
Applied the RegExp issues reported by Jeff Robinson here: http://jmrware.com/articles/2010/jqueryregex/jQueryRegexes.html Additionally broke out all remaining inline RegExp. Fixes #7062.
Diffstat (limited to 'src/attributes.js')
-rw-r--r--src/attributes.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/attributes.js b/src/attributes.js
index 4fa49b914..b0a0e91fa 100644
--- a/src/attributes.js
+++ b/src/attributes.js
@@ -3,11 +3,11 @@
var rclass = /[\n\t]/g,
rspace = /\s+/,
rreturn = /\r/g,
- rspecialurl = /href|src|style/,
- rtype = /(button|input)/i,
- rfocusable = /(button|input|object|select|textarea)/i,
- rclickable = /^(a|area)$/i,
- rradiocheck = /radio|checkbox/;
+ rspecialurl = /^(?:href|src|style)$/,
+ rtype = /^(?:button|input)$/i,
+ rfocusable = /^(?:button|input|object|select|textarea)$/i,
+ rclickable = /^a(?:rea)?$/i,
+ rradiocheck = /^(?:radio|checkbox)$/i;
jQuery.fn.extend({
attr: function( name, value ) {