Skip to content

Commit dbd69f7

Browse files
committed
docs(metadata-protocol): state the free-text boundary rule against renameName's start-of-name swap
Claude-Session: https://claude.ai/code/session_0121ooBYRmS8ziFXm9ai5YHm Co-authored-by: Claude <noreply@anthropic.com>
1 parent a7c27b6 commit dbd69f7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/metadata-protocol/src/protocol.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26552,8 +26552,8 @@ export class ObjectStackProtocolImplementation implements
2655226552
// the field `x_iojn_task` came out `x_iojn2_task` — its `name` and every
2655326553
// value naming it — while its `fields` key stayed, so the copy's key
2655426554
// and `name` disagreed. `x_iojn_task` is another identifier, never the
26555-
// object; the copy renames no item whose name does not START with the
26556-
// source prefix (`renameName`), and neither does this rewrite.
26555+
// object: `renameName` swaps the source prefix only at the START of a
26556+
// name, and this rewrite now matches only a whole identifier too.
2655726557
const olds = prefixed.filter((name) => renameMap.has(name)).sort((a, b) => b.length - a.length);
2655826558
const esc = (s: string) => s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
2655926559
const re = olds.length

0 commit comments

Comments
 (0)