From ea98b164387d16fe5c0aeb9fc0b4498f2df8fb02 Mon Sep 17 00:00:00 2001 From: John Resig Date: Fri, 29 Jun 2007 21:52:45 +0000 Subject: [PATCH] Who am I kidding |= is useless. --- src/selector/selector.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/selector/selector.js b/src/selector/selector.js index bc250fe..83b27e9 100644 --- a/src/selector/selector.js +++ b/src/selector/selector.js @@ -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 ); } -- 1.7.10.4