]> git.proxmox.com Git - pve-eslint.git/blobdiff - eslint/lib/linter/config-comment-parser.js
import 8.23.1 source
[pve-eslint.git] / eslint / lib / linter / config-comment-parser.js
index b88c5e6c850929873e64b3b64a87c480647ca501..643de8f2d312a7e08c5690a06cbcd455108e96f8 100644 (file)
@@ -131,8 +131,7 @@ module.exports = class ConfigCommentParser {
 
         const items = {};
 
-        // Collapse whitespace around commas
-        string.replace(/\s*,\s*/gu, ",").split(/,+/u).forEach(name => {
+        string.split(",").forEach(name => {
             const trimmedName = name.trim();
 
             if (trimmedName) {