mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Who am I kidding |= is useless.
This commit is contained in:
parent
e7a8310f65
commit
ea98b16438
@ -53,7 +53,7 @@ jQuery.extend({
|
|||||||
// The regular expressions that power the parsing engine
|
// The regular expressions that power the parsing engine
|
||||||
parse: [
|
parse: [
|
||||||
// Match: [@value='test'], [@foo]
|
// Match: [@value='test'], [@foo]
|
||||||
/^\[ *(@)([\w-]+) *([!*$^~|=]*) *('?"?)(.*?)\4 *\]/,
|
/^\[ *(@)([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,
|
||||||
|
|
||||||
// Match: [div], [div p]
|
// Match: [div], [div p]
|
||||||
/^(\[)\s*(.*?(\[.*?\])?[^[]*?)\s*\]/,
|
/^(\[)\s*(.*?(\[.*?\])?[^[]*?)\s*\]/,
|
||||||
@ -347,7 +347,7 @@ jQuery.extend({
|
|||||||
type == "!=" && z != m[5] ||
|
type == "!=" && z != m[5] ||
|
||||||
type == "^=" && z && !z.indexOf(m[5]) ||
|
type == "^=" && z && !z.indexOf(m[5]) ||
|
||||||
type == "$=" && z.substr(z.length - m[5].length) == 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 );
|
tmp.push( a );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user