Context
PR #23 review flagged that version strings like v1.2.3.4 could match the IPv4 regex.
Location: src/middleware/redactor.ts:38
Current pattern: /\b(?:\d{1,3}\.){3}\d{1,3}\b/g
Proposal
Add negative lookbehind for common version prefixes: v, V, - preceded by alphanumeric. Or validate that matched octets are in the 0-255 range (current pattern matches 999.999.999.999).
Priority
Low — version strings with 4 numeric segments are uncommon, and false redaction is harmless (rehydrated locally).
Context
PR #23 review flagged that version strings like
v1.2.3.4could match the IPv4 regex.Location:
src/middleware/redactor.ts:38Current pattern:
/\b(?:\d{1,3}\.){3}\d{1,3}\b/gProposal
Add negative lookbehind for common version prefixes:
v,V,-preceded by alphanumeric. Or validate that matched octets are in the 0-255 range (current pattern matches999.999.999.999).Priority
Low — version strings with 4 numeric segments are uncommon, and false redaction is harmless (rehydrated locally).