pidgin/nest

Parents c3870e78b5ab
Children 3cc625cf26ff
Use a regex with case and whitespace folding to make it easier to mark something as obsolete
--- a/tools/migrate-tracker.js Sat May 04 10:55:05 2019 -0500
+++ b/tools/migrate-tracker.js Sat May 04 12:04:13 2019 -0500
@@ -5,7 +5,8 @@
const paths = fs
.readFileSync(path.join(__dirname, "paths.txt"), "utf8")
.split("\r\n");
-const migrating = paths.filter(path => !path.endsWith("# obsolete"));
+const obsoleteRegex = /\s#(\s+)?obsolete(\s+)?$/i;
+const migrating = paths.filter(path => !obsoleteRegex.test("# obsolete"));
const covered = new Set();