Skip to content
TypeScript

fix(mobile): keep trailing underscores and tildes in autolinked URLs (#13807)

Yash Singh81e0491d2bde
diff --git a/patches/[email protected] b/patches/[email protected]
index 29beb22c1cf..3bf3788bdd3 100644
--- a/patches/[email protected]
+++ b/patches/[email protected]
@@ -56,7 +56,7 @@ diff --git a/cpp/md4c/md4c.c b/cpp/md4c/md4c.c
+ /* GFM leaves a trailing run of punctuation outside the link, including
+ * the sentence dots in "https://example.com/a...". */
+ if(opener->ch == _T(':')) {
-+ while(end > opener->end && ISANYOF(end - 1, _T("?!.,:*_~")))
++ while(end > opener->end && ISANYOF(end - 1, _T("?!.,:*")))
+ end--;
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 132247c1cab..c001be981c1 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -109,7 +109,7 @@ patchedDependencies:
[email protected]: 319a9ded5db49c5b5215c511a138b33f44c7ea2972eb418192e8d5342fe75ce6
[email protected]: 0579f8e4dad02bf3183d95b02620358412983c36f9bda7425dc8bcb9643b5ce2
[email protected]: 6e4339347bc5bb3c9ea67d85ff5c814058b211c5750f247aba59d07869a2e787
- [email protected]: 7f5d2a8c357746316f67c9600034abbe71166ec766df27619a157f40b2c5a23c
+ [email protected]: 642b47830730acff3761fe29cf54271d18b493c0070c750097850b7ea032e00c
[email protected]: 825622aae63a8fb5b904f3c77908a0e216261d727ea171709f2c0b6088422675
[email protected]: bae9878a5bdba94e11c890e5ee164542feb622624fc81c13890063094608216d
[email protected]: 595114f3f9ce8b9f0d99d1aafe5c12c997b7d75ca9add31d46cbedbfe347b8e0
@@ -300,7 +300,7 @@ importers:
version: link:../../packages/contracts
'@t3tools/mobile-markdown-text':
specifier: file:./modules/t3-markdown-text
- version: file:apps/mobile/modules/t3-markdown-text(54829604106ac55999e32558f817d201)
+ version: file:apps/mobile/modules/t3-markdown-text(c883758f8793b29a89016166016b354e)
'@t3tools/mobile-review-diff-native':
specifier: file:./modules/t3-review-diff
version: file:apps/mobile/modules/t3-review-diff
@@ -447,7 +447,7 @@ importers:
react-native-nitro-markdown:
specifier: ^0.5.0
react-native-nitro-modules:
specifier: 0.35.9
version: 0.35.9(patch_hash=825622aae63a8fb5b904f3c77908a0e216261d727ea171709f2c0b6088422675)([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])
@@ -15267,7 +15267,7 @@ snapshots:
dependencies:
defer-to-connect: 2.0.1
- '@t3tools/mobile-markdown-text@file:apps/mobile/modules/t3-markdown-text(54829604106ac55999e32558f817d201)':
+ '@t3tools/mobile-markdown-text@file:apps/mobile/modules/t3-markdown-text(c883758f8793b29a89016166016b354e)':
dependencies:
'@t3tools/client-runtime': link:packages/client-runtime
'@t3tools/shared': link:packages/shared
@@ -15278,7 +15278,7 @@ snapshots:
react: 19.2.3
'@t3tools/mobile-review-diff-native@file:apps/mobile/modules/t3-review-diff': {}
@@ -20915,7 +20915,7 @@ snapshots:
dependencies:
react: 19.2.3