Skip to content
Permalink
Browse files
Added minor regexp optimization.
  • Loading branch information
jeresig committed Jan 12, 2007
1 parent 39b0976 commit dfa1a02
Showing 1 changed file 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;
}
}

0 comments on commit dfa1a02

Please sign in to comment.