Index: lib/common.js |
=================================================================== |
--- a/lib/common.js |
+++ b/lib/common.js |
@@ -59,17 +59,17 @@ |
// remove trailing wildcards |
.replace(/(\.\*)$/, ""); |
} |
exports.filterToRegExp = filterToRegExp; |
function splitSelector(selector) |
{ |
- if (selector.indexOf(",") == -1) |
+ if (!selector.includes(",")) |
return [selector]; |
let selectors = []; |
let start = 0; |
let level = 0; |
let sep = ""; |
for (let i = 0; i < selector.length; i++) |