mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-25 16:44:16 +08:00
fix(regexp-utils): Fix urlLinkTagRegex bug
Regex was missing a `?`, so consumed all <a> tags on a single line. Fixed to be non-greedy.
This commit is contained in:
parent
42e5f4c605
commit
3f017892e0
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ RegExpUtils =
|
|||
# 3. the rest of the opening a tag
|
||||
# 4. the contents of the a tag
|
||||
# 5. the closing tag
|
||||
urlLinkTagRegex: -> new RegExp(/(<a.*?href\s*?=\s*?['"])((?!mailto).+)(['"].*?>)([\s\S]*?)(<\/a>)/gim)
|
||||
urlLinkTagRegex: -> new RegExp(/(<a.*?href\s*?=\s*?['"])((?!mailto).+?)(['"].*?>)([\s\S]*?)(<\/a>)/gim)
|
||||
|
||||
# https://regex101.com/r/zG7aW4/3
|
||||
imageTagRegex: -> /<img\s+[^>]*src="([^"]*)"[^>]*>/g
|
||||
|
|
Loading…
Reference in a new issue