Skip to content

fix: IPv4 pattern false-positives on version strings #26

Description

@byapparov

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions