14 lines
516 B
Diff
14 lines
516 B
Diff
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']}
|
|
)
|