Skip to content
Permalink
Browse files
Who am I kidding |= is useless.
  • Loading branch information
jeresig committed Jun 29, 2007
1 parent e7a8310 commit ea98b16
Showing 1 changed file with 2 additions and 2 deletions.
@@ -53,7 +53,7 @@ jQuery.extend({
// The regular expressions that power the parsing engine
parse: [
// Match: [@value='test'], [@foo]
/^\[ *(@)([\w-]+) *([!*$^~|=]*) *('?"?)(.*?)\4 *\]/,
/^\[ *(@)([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,

// Match: [div], [div p]
/^(\[)\s*(.*?(\[.*?\])?[^[]*?)\s*\]/,
@@ -347,7 +347,7 @@ jQuery.extend({
type == "!=" && z != m[5] ||
type == "^=" && z && !z.indexOf(m[5]) ||
type == "$=" && z.substr(z.length - m[5].length) == m[5] ||
(type == "*=" || type == "|=" || type == "~=") && z.indexOf(m[5]) >= 0) ^ not )
(type == "*=" || type == "~=") && z.indexOf(m[5]) >= 0) ^ not )
tmp.push( a );
}

0 comments on commit ea98b16

Please sign in to comment.