Skip to content

Fix LINK_REGEX to match single-quoted href attributes (#60)#65

Merged
keraattin merged 1 commit into
developmentfrom
fix/issue-60-single-quote-href
Apr 11, 2026
Merged

Fix LINK_REGEX to match single-quoted href attributes (#60)#65
keraattin merged 1 commit into
developmentfrom
fix/issue-60-single-quote-href

Conversation

@keraattin
Copy link
Copy Markdown
Owner

The previous regex only matched href="..." (double quotes), silently dropping any link using href='...' (single quotes). Updated regex to match both quote styles while stopping at >, whitespace, or the closing quote to prevent runaway matches.

The previous regex only matched href="..." (double quotes), silently
dropping any link using href='...' (single quotes). Updated regex
to match both quote styles while stopping at >, whitespace, or the
closing quote to prevent runaway matches.
@keraattin keraattin self-assigned this Apr 11, 2026
@keraattin keraattin added the bug Something isn't working label Apr 11, 2026
@keraattin keraattin merged commit 30fee23 into development Apr 11, 2026
@keraattin keraattin deleted the fix/issue-60-single-quote-href branch April 11, 2026 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant