@cg3/equip 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/equip.js +1 -1
- package/dist/lib/commands/doctor.js +1 -1
- package/package.json +1 -1
package/bin/equip.js
CHANGED
|
@@ -215,7 +215,7 @@ function reconcileState(toolName, pkg) {
|
|
|
215
215
|
const rulesPath = def.rulesPath();
|
|
216
216
|
try {
|
|
217
217
|
const content = _fs.readFileSync(rulesPath, "utf-8");
|
|
218
|
-
const versionMatch = content.match(new RegExp(`<!-- ${toolName}:v([
|
|
218
|
+
const versionMatch = content.match(new RegExp(`<!-- ${toolName}:v([0-9.]+) -->`));
|
|
219
219
|
if (versionMatch) {
|
|
220
220
|
record.rulesPath = rulesPath;
|
|
221
221
|
record.rulesVersion = versionMatch[1];
|
|
@@ -107,7 +107,7 @@ function runDoctor() {
|
|
|
107
107
|
else {
|
|
108
108
|
try {
|
|
109
109
|
const rulesContent = fs.readFileSync(rulesPath, "utf-8");
|
|
110
|
-
const versionMatch = rulesContent.match(new RegExp(`<!-- ${toolName}:v([
|
|
110
|
+
const versionMatch = rulesContent.match(new RegExp(`<!-- ${toolName}:v([0-9.]+) -->`));
|
|
111
111
|
if (!versionMatch) {
|
|
112
112
|
cli.warn(` ${def.name}: rules block not found in ${sanitizePath(rulesPath)}`);
|
|
113
113
|
issues++;
|