Skip to content

JavaScript: Treat LinkifyIt match calls as non-RegExp operations - #22577

Open
theinfosecguy wants to merge 1 commit into
github:mainfrom
theinfosecguy:javascript-linkifyit-regexp-fp
Open

theinfosecguy wants to merge 1 commit into
github:mainfrom
theinfosecguy:javascript-linkifyit-regexp-fp

Conversation

@theinfosecguy

Copy link
Copy Markdown
Contributor

Fixes #22546.

LinkifyIt.match() scans text for links, but these calls were being treated as regular expression operations. The model now recognizes LinkifyIt instances created through its constructor, factory APIs, and fluent configuration methods.

Adds regression coverage while keeping similarly named methods from unrelated packages detectable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

False positive: js/incomplete-hostname-regexp treats LinkifyIt.match(text) as a regex call

1 participant