mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-16 20:45:33 -08:00
Use US English spelling throughout and check it in npm test
AI Assisted
This commit is contained in:
1 parent
e67aaabdce
commit
899b3a48d8
84 files changed
+319
-240
No files matched your search
@@ -177,7 +177,7 @@ export function writeIfChanged(file, content) {
|
||||
return true;
|
||||
}
|
||||
|
||||
/** Normalise line endings for parsing; keep the original for writing back. */
|
||||
/** Normalize line endings for parsing; keep the original for writing back. */
|
||||
export function eol(text) {
|
||||
return text.includes("\r\n") ? "\r\n" : "\n";
|
||||
}
|
||||
|
||||
@@ -206,7 +206,7 @@ function parseGroups(overview) {
|
||||
if (cells.length < 2 || /^group$/i.test(cells[0])) continue;
|
||||
const id = plainText(cells[0]);
|
||||
const phases = phaseList(cells[1]);
|
||||
// "None", a dash, a single phase, a group its author labelled sequential
|
||||
// "None", a dash, a single phase, a group its author labeled sequential
|
||||
// ("A (sequential)"), or a Phases cell written as a chain ("1 → 2") is not
|
||||
// a parallel group.
|
||||
if (!id || /^(none|-|–|—)$/i.test(id) || /\bsequential\b/i.test(id) || /→|->|\bthen\b/i.test(cells[1]) || phases.length < 2) continue;
|
||||
|
||||
Reference in new issue
Block a user