Skip to content
Permalink
Browse files

Added minor regexp optimization.

  • Loading branch information
jeresig committed Jan 12, 2007
1 parent 39b0976 commit dfa1a0246f0249056f3ce85f62a61e609f20fd07
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/selector/selector.js
@@ -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.
You can’t perform that action at this time.