Skip to content

Commit b09479c

Browse files
committed
fix(codemod-split-engine): --hand-docs reads serveReferenceNames' untagged marker as a hand stub
Its marker is 'The body lives in' with no tag, so the pass saw 85 of the 86 hand stubs. The fixture's beta stub now carries the untagged form. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CYHBS7P5hkUQrNHkHZ
1 parent a7fe548 commit b09479c

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

‎scripts/codemod-split-engine.mjs‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2744,8 +2744,12 @@ async function mainScoped(tm, argv) {
27442744
*/
27452745
const HAND_DOCS_CARD = '#30053';
27462746

2747-
/** The marker a hand-series stub's body opens with; group 1 is the module, group 2 the phrase once moved. */
2748-
const HAND_STUB_MARK = /^ *\/\/ \[(?:#25522 cut \d+|#27495|#29460)\] The body (?:moved to|lives in) `(engine-[a-z0-9-]+\.ts)`(, its docblock with it)?/;
2747+
/**
2748+
* The marker a hand-series stub's body opens with: `[#25522 cut N]` or
2749+
* `[#27495]` then "The body moved to", or #29460's untagged "The body lives
2750+
* in". Group 1 is the module, group 2 the phrase once moved.
2751+
*/
2752+
const HAND_STUB_MARK = /^ *\/\/ (?:\[(?:#25522 cut \d+|#27495)\] )?The body (?:moved to|lives in) `(engine-[a-z0-9-]+\.ts)`(, its docblock with it)?/;
27492753

27502754
/** The phrase a stub's marker gains after its module's backticked name. */
27512755
const HAND_DOC_MOVED = `, ${DOC_MOVED}`;
@@ -3452,7 +3456,7 @@ export class ObjectQL {
34523456
34533457
/** A beta docblock, {@link LinkedOnly}. */
34543458
private betaPrivate(): number {
3455-
// [#29460] The body lives in \`engine-beta.ts\`; it reads no member.
3459+
// The body lives in \`engine-beta.ts\`; it reads no member.
34563460
return betaPrivate();
34573461
}
34583462

0 commit comments

Comments
 (0)