Skip to content

Commit 632891a

Browse files
fix(mobile): keep trailing underscores and tildes in autolinked URLs
Trimming them made a link to https://localhost/a_ open https://localhost/a. Co-authored-by: Cursor <[email protected]>
1 parent fe6388f commit 632891a

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎patches/[email protected]‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ diff --git a/cpp/md4c/md4c.c b/cpp/md4c/md4c.c
5656
+ /* GFM leaves a trailing run of punctuation outside the link, including
5757
+ * the sentence dots in "https://example.com/a...". */
5858
+ if(opener->ch == _T(':')) {
59-
+ while(end > opener->end && ISANYOF(end - 1, _T("?!.,:*_~")))
59+
+ while(end > opener->end && ISANYOF(end - 1, _T("?!.,:*")))
6060
+ end--;
6161
}
6262

‎pnpm-lock.yaml‎

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)