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.
This commit is contained in:
parent
19b5d9e874
commit
9dc6e0c572
8 changed files with 66 additions and 50 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue