Permalink
Browse files

remove RegExp.$1, RegExp.$2 etc.

  • Loading branch information...
fat committed Mar 25, 2011
1 parent 43c22d0 commit 69bcd97bcbabe6923cdc1f29ca3b82411ce808ce
Showing with 6 additions and 5 deletions.
  1. +6 −5 src/qwery.js
View
@@ -111,11 +111,12 @@
continue;
}
// Code to deal with attribute selectors
if (token.match(/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/)) {
tagName = RegExp.$1;
var attrName = RegExp.$2;
var attrOperator = RegExp.$3;
var attrValue = RegExp.$4;
var match = token.match(/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/);
if (match) {
tagName = match[1];
var attrName = match[2];
var attrOperator = match[3];
var attrValue = match[4];
if (!tagName) {
tagName = '*';
}

0 comments on commit 69bcd97

Please sign in to comment.