Skip to content
Browse files

fixed whitespace in selectors when not using Query Selector API (Dome…

…nic Denicola)
  • Loading branch information...
1 parent 7993d32 commit c3e4ab9543734c4804de9bbd560fe75ae15d184a @dperini committed Dec 19, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/nwmatcher-base.js
  2. +1 −1 src/nwmatcher.js
View
2 src/nwmatcher-base.js
@@ -114,7 +114,7 @@
reSplitToken = RegExp('(' +
'\\[' + attributes + '\\]|' +
'\\(' + pseudoclass + '\\)|' +
- '[^\\x20>+~]|\\\\.)+', 'g'),
+ '[^\\x20\\t\\n\\r\\f>+~]|\\\\.)+', 'g'),
reWhiteSpace = /[\x20\t\n\r\f]+/g,
View
2 src/nwmatcher.js
@@ -185,7 +185,7 @@
reSplitToken = new RegExp('(' +
'\\[' + attributes + '\\]|' +
'\\(' + pseudoclass + '\\)|' +
- '[^\\x20>+~]|\\\\.)+', 'g'),
+ '[^\\x20\\t\\r\\n\\f>+~]|\\\\.)+', 'g'),
// for in excess whitespace removal
reWhiteSpace = /[\x20\t\n\r\f]+/g,

0 comments on commit c3e4ab9

Please sign in to comment.
Something went wrong with that request. Please try again.