diff --git a/dist/index.js b/dist/index.js index 5ff6559..9b9aa75 100644 --- a/dist/index.js +++ b/dist/index.js @@ -6804,7 +6804,7 @@ class SingleWords extends feature_1.default { sum += (change .content .split("\n") - .filter((line) => line.trim().match(/^\+\s*["'`,\w-]+\s*$/)) + .filter((line) => line.trim().match(/^\+\s*(["'`]?)\b[\w-]+\b\1\S?$/)) .length); } } diff --git a/package-lock.json b/package-lock.json index df0baf2..745596c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6692,9 +6692,9 @@ "dev": true }, "node_modules/sizeup-core": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/sizeup-core/-/sizeup-core-0.2.0.tgz", - "integrity": "sha512-KiyFhkOEG5WLsnQTw2ETaOXYI8I0r7McbEKvLv1DwWjjmC6YZurli+pLI2euROsQ9wjpVJVorUXZcRSILTNzLA==", + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/sizeup-core/-/sizeup-core-0.2.1.tgz", + "integrity": "sha512-cZAggc3tA1nNrQc72RKJ98nJBPlatXMmFDLhJfTPP91mjefhMkrA+9X96pvzLiApLzbtosLa7NQdsraofi0zBQ==", "dependencies": { "minimatch": "^9.0.3", "parse-diff": "^0.11.1",