Development record
genericHomeRe is the last case-sensitive identity matcher, and it guards the one identity kind whose value is another person's filesystem path. internal/adapter/scanner/identity.go compiles it as (?:/Users/[A-Za-z0-9._-]+|/home/[A-Za-z0-9._-]+) with no (?i), and it is the sole detector for home_path_other. macOS and Windows filesystems fold case, so /USERS/NAME/notes.md and /Home/NAME/notes.md name the file the canonical spelling names, and a path written either way passes every redactor that routes through ScanText and the privacy lint. Every sibling matcher on this boundary already folds (email, github, homeSelf, localBare, githubRemoteRe, noreplyRe). The finding was first recorded on a parked branch whose record never reached main (0fac3697 carries its fix); it is captured afresh here so the fix can land with its record.
genericHomeRe is the last case-sensitive identity matcher, and it guards the one identity kind whose value is another person's filesystem path. internal/adapter/scanner/identity.go compiles it as (?:/Users/[A-Za-z0-9.-]+|/home/[A-Za-z0-9.-]+) with no (?i), and it is the sole detector for home_path_other. macOS and Windows filesystems fold case, so /USERS/NAME/notes.md and /Home/NAME/notes.md name the file the canonical spelling names, and a path written either way passes every redactor that routes through ScanText and the privacy lint. Every sibling matcher on this boundary already folds (email, github, homeSelf, localBare, githubRemoteRe, noreplyRe). The finding was first recorded on a parked branch whose record never reached main (0fac3697 carries its fix); it is captured afresh here so the fix can land with its record.
Grounds
- pursued: a case variant of another person's home path is reported as home_path_other; an upper- or mixed-case /Users or /home path passing ScanText with no finding would show it wrong.
Frontmatter
| id | iss-2609251544556874 |
|---|---|
| type | issue |
| lifecycle | resolved |
| severity | minor |
.abcd/work/issues/resolved/iss-2609251544556874-generichomere-is-the-last-case-sensitive.md
open on GitHub ↗ · commit history ↗