@futurelastic/colab-handbook 1.21.0-rc.9 → 1.21.0

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/package.json CHANGED
@@ -33,5 +33,5 @@
33
33
  "engines": {
34
34
  "node": ">=18"
35
35
  },
36
- "version": "1.21.0-rc.9"
36
+ "version": "1.21.0"
37
37
  }
@@ -31,9 +31,18 @@ const ANY_HEADING_RE = /^#{1,6}\s+\S/;
31
31
  /** A GitHub checklist line: `- [ ] …` or `- [x] …` (case-insensitive on the mark). */
32
32
  const ITEM_RE = /^-\s*\[([ xX])\]\s*(.+)$/;
33
33
 
34
- /** `Remainder: #M` — the trailer that hands unticked boxes to a follow-up issue, same shape as
35
- * the `Filed-by:` / `Group:` / `Because:` trailers this repo already writes onto issues. */
36
- const REMAINDER_RE = /^Remainder:\s*#(\d+)\b/im;
34
+ /** `Remainder: #M` — the declaration that hands unticked boxes to a follow-up issue, same shape as
35
+ * the `Filed-by:` / `Group:` / `Because:` trailers this repo already writes onto issues.
36
+ *
37
+ * Read ANYWHERE in a text, not only at the start of a line (#737): no rule says the declaration
38
+ * must start a line, and the two common forms people actually write were both missed — at the end
39
+ * of the unticked item it hands off (`- [ ] measure X … — Remainder: #M`) and inside a sentence or
40
+ * in bold (`item 4 moved to **Remainder: #M**`, `**Remainder:** #M`). Measured: a graded,
41
+ * CI-green branch sat refused for ~16 h until the same trailer was restated on its own line.
42
+ * The left edge still has to be a word boundary (`xRemainder:` does not count), and `#M` must be
43
+ * digits, so the `Remainder: #M` placeholder in prose and refusal messages never matches.
44
+ * Emphasis markers (`*`, `_`) are allowed on either side of the colon. */
45
+ const REMAINDER_RE = /(?<![A-Za-z0-9])Remainder[*_]*:[*_]*\s*#(\d+)\b/i;
37
46
 
38
47
  /**
39
48
  * The raw text of the `## Plan` section (between its heading and the next heading, or the end of