Skip to content

Commit 906bbda

Browse files
committed
update: add note about old code can use
1 parent 04f72b2 commit 906bbda

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ function legacyAutolinkTransform(tree) {
163163
tree,
164164
[
165165
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, findUrl],
166+
// [/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g, findEmail] # NOTE: this is your version, we can use your if you want
166167
[/(^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu, findEmailLegacy]
167168
],
168169
{ignore: ['link', 'linkReference']}

0 commit comments

Comments
 (0)