From 8914773278c69e71383d2053668093ca8b2219f8 Mon Sep 17 00:00:00 2001 From: Nikita Date: Thu, 20 Apr 2017 14:53:16 +0300 Subject: [PATCH] Fix error with local variables --- src/ElementQueries.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ElementQueries.js b/src/ElementQueries.js index 14f1232..e83f984 100755 --- a/src/ElementQueries.js +++ b/src/ElementQueries.js @@ -330,8 +330,8 @@ * @param {String} css */ function extractQuery(css) { - var match; - var smatch; + var match, smatch, attrs, attrMatch; + css = css.replace(/'/g, '"'); while (null !== (match = regex.exec(css))) { smatch = match[1] + match[3];