Skip to content

Commit 431390f

Browse files
authored
fix: Add patch for [email protected] (#4479)
Compatibility patch for Safari versions below 16.4
1 parent 1f5709e commit 431390f

File tree

3 files changed

+26
-5
lines changed

3 files changed

+26
-5
lines changed

patches/[email protected]

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/lib/index.js b/lib/index.js
2+
index c5ca771c24dd914e342f791716a822431ee32b3a..9e9dc090d4be5cf882316ed2eced4c471c40407b 100644
3+
--- a/lib/index.js
4+
+++ b/lib/index.js
5+
@@ -132,7 +132,7 @@ function transformGfmAutolinkLiterals(tree) {
6+
tree,
7+
[
8+
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, findUrl],
9+
- [/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu, findEmail]
10+
+ [/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g, findEmail]
11+
],
12+
{ignore: ['link', 'linkReference']}
13+
)

pnpm-lock.yaml

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

pnpm-workspace.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
packages:
2-
- 'packages/*'
3-
- 'projects/*'
4-
- 'scripts/icon'
2+
- packages/*
3+
- projects/*
4+
- scripts/icon
5+
6+
patchedDependencies:
7+

0 commit comments

Comments
 (0)