Skip to content

URI detector: regex matches invalid characters, greedily overlaps with other URIs #3686

Open
@rgmz

Description

Example

<p><a href="http://username:[email protected]">http://username:[email protected]</a></p>

This matches http://username:[email protected]">http://username:[email protected] and not http://username:[email protected] twice.

Found unverified result 🐷🔑❓
Verification issue: lookup 127.0.0.1">http: no such host
Detector Type: URI
Decoder Type: PLAIN
Raw result: http://username:[email protected]">http://username:[email protected]
Commit: 95a76587eea5863480ff23e34bd415d8ec0d6b2a
File: test/mattermost.txt
Line: 151
Link: https://github.com/mattermost/commonmark.js/blob/95a76587eea5863480ff23e34bd415d8ec0d6b2a/test/mattermost.txt#L151

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions