mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Added minor regexp optimization.
This commit is contained in:
parent
39b0976e3e
commit
dfa1a0246f
@ -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 New Issue
Block a user