Added minor regexp optimization.
This commit is contained in:
parent
39b0976e3e
commit
dfa1a0246f
1 changed files with 3 additions and 3 deletions
|
@ -312,13 +312,13 @@ jQuery.extend({
|
|||
var m = re.exec( t );
|
||||
|
||||
if ( m ) {
|
||||
// Remove what we just matched
|
||||
t = t.substring( m[0].length );
|
||||
|
||||
// Re-organize the first match
|
||||
if ( jQuery.expr[ m[1] ]._resort )
|
||||
m = jQuery.expr[ m[1] ]._resort( m );
|
||||
|
||||
// Remove what we just matched
|
||||
t = t.replace( re, "" );
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue