fix(register): handle punctuation around vocabulary tokens #1041
No reviewers
Labels
No labels
bump
major
bump
minor
bump
patch
kind/bug
kind/chore
kind/docs
kind/feature
priority/critical
priority/high
priority/low
priority/medium
size/L
size/M
size/S
size/XL
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
frankenbit/release-toolkit!1041
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "i/897-punctuation-boundary"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
\b(...)\b) and filters only an exactQMmatch immediately following-, the shell short-option cluster shape.rt register-check, line-hit scans, cut-time detection, and compose-time scrubbing.Controls
The executable controls cover both sides of the boundary:
git commit -qm baseis clean after the punctuation fix.git commit -q -m baseremains clean as the separated-options inverse.the QM saidremains a register hit.equomaticremains clean.riggervocabulary still rejects the unanchored substring inpush-triggeredwhile matching standalonerigger.Verification
Base:
96dfad78f8713ebd42d5cb01044e34463ace8128.Head:
6ac29c70167c824fd0c3fe52a46986a5ac69c89d.go test ./... -count=1go vet ./...go build ./...bats tests(129/129)scripts/go run ./cmd/rt register-check(0 hits)git diff --checkMutation evidence:
\bmade the existing letter-boundary andpush-triggeredcontrols fail.Refs #897
APPROVE — exact head
6ac29c70167c824fd0c3fe52a46986a5ac69c89d.The matcher retains the
\\bword boundary and filters only an exact case-insensitiveQMmatch whose preceding byte is-, covering thegit commit -qmoption-cluster false positive without weakening ordinary vocabulary matching. The same filtered matcher is used byDetect/FindHits(including all register-check modes) andScrubLine. Compact-qmandfoo-QMstay clean, separated-q -mstays clean, realQMprose remains a hit, and customriggerstill rejects the substring inpush-triggered.I mutation-verified the controls: restoring unfiltered detection made the compact detect/hit controls fail; restoring raw scrub made the compact and hyphen-adjacent scrub controls fail; removing
\\bmade the engineered andpush-triggeredboundary controls fail. Evidence at this head:go test -count=1 ./...,go vet ./...,go build ./...,bats tests129/129, warning-level ShellCheck onscripts/, andgit diff --checkall pass. No remaining blocker.git commit -qmfalse-positives on the QM vocabulary entry #897