Added minor regexp optimization.

This commit is contained in:
John Resig 2007-01-12 07:32:15 +00:00
parent 39b0976e3e
commit dfa1a0246f

View file

@ -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;
}
}