Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
431390fe
authored
Apr 08, 2025
by
a.e
Committed by
GitHub
Apr 08, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: Add patch for mdast-util-gfm-autolink-literal@2.0.1 (#4479)
Compatibility patch for Safari versions below 16.4
parent
1f5709ed
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
5 deletions
+26
-5
patches/mdast-util-gfm-autolink-literal@2.0.1.patch
+13
-0
pnpm-lock.yaml
+7
-2
pnpm-workspace.yaml
+6
-3
No files found.
patches/mdast-util-gfm-autolink-literal@2.0.1.patch
0 → 100644
View file @
431390fe
diff --git a/lib/index.js b/lib/index.js
index c5ca771c24dd914e342f791716a822431ee32b3a..9e9dc090d4be5cf882316ed2eced4c471c40407b 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -132,7 +132,7 @@ function transformGfmAutolinkLiterals(tree) {
tree,
[
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, findUrl],
- [/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu, findEmail]
+ [/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g, findEmail]
],
{ignore: ['link', 'linkReference']}
)
pnpm-lock.yaml
View file @
431390fe
...
...
@@ -4,6 +4,11 @@ settings:
autoInstallPeers
:
true
excludeLinksFromLockfile
:
false
patchedDependencies
:
mdast-util-gfm-autolink-literal@2.0.1
:
hash
:
b03e2c531618296b99e716d479b68761f6ebc6c81dcd1e9359e80b71e6b5ee8e
path
:
patches/mdast-util-gfm-autolink-literal@2.0.1.patch
importers
:
.
:
...
...
@@ -16887,7 +16892,7 @@ snapshots:
transitivePeerDependencies
:
-
supports-color
mdast-util-gfm-autolink-literal@2.0.1
:
mdast-util-gfm-autolink-literal@2.0.1
(patch_hash=b03e2c531618296b99e716d479b68761f6ebc6c81dcd1e9359e80b71e6b5ee8e)
:
dependencies
:
'
@types/mdast'
:
4.0.4
ccount
:
2.0.1
...
...
@@ -16935,7 +16940,7 @@ snapshots:
mdast-util-gfm@3.1.0
:
dependencies
:
mdast-util-from-markdown
:
2.0.2
mdast-util-gfm-autolink-literal
:
2.0.1
mdast-util-gfm-autolink-literal
:
2.0.1
(patch_hash=b03e2c531618296b99e716d479b68761f6ebc6c81dcd1e9359e80b71e6b5ee8e)
mdast-util-gfm-footnote
:
2.1.0
mdast-util-gfm-strikethrough
:
2.0.0
mdast-util-gfm-table
:
2.0.0
...
...
pnpm-workspace.yaml
View file @
431390fe
packages
:
-
'
packages/*'
-
'
projects/*'
-
'
scripts/icon'
-
packages/*
-
projects/*
-
scripts/icon
patchedDependencies
:
mdast-util-gfm-autolink-literal@2.0.1
:
patches/mdast-util-gfm-autolink-literal@2.0.1.patch
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment