Skip to content

typescript: func_precision_pct - Assignment Regex Non-Consuming Lookahead #1705

Description

@squid-protocol

GitGalaxy's assignment regex tries to step over optional type annotations. Because the skip is optional and uses a non-consuming lookahead (?=...), the engine can falsely anchor on the last word of a complex type annotation that precedes the = sign (e.g., capturing B in reduce: <A, B>(...) => B = ...), rather than the actual variable name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUnintended behavior or logic failure in the enginecore-engineModifications to the central physics and parsing enginethreat: false-positiveAccuracy tuning: Engine incorrectly flagged safe code

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions