We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 089ee2c commit 421e4bfCopy full SHA for 421e4bf
lib/eslint.js
@@ -43,11 +43,8 @@ var assert = require("assert"),
43
function parseBooleanConfig(string, comment) {
44
var items = {};
45
46
- // Collapse whitespace around : to make parsing easier
47
- string = string.replace(/\s*:\s*/g, ":");
48
-
49
- // Collapse whitespace around ,
50
- string = string.replace(/\s*,\s*/g, ",");
+ // Collapse whitespace around `:` and `,` to make parsing easier
+ string = string.replace(/\s*([:,])\s*/g, "$1");
51
52
string.split(/\s|,+/).forEach(function(name) {
53
if (!name) {
0 commit comments