Skip to content

Commit 5ff99b1

Browse files
committed
fix unexpected range.
1 parent 9bb3371 commit 5ff99b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const autoLinkMd = (str: string) =>
22
str
33
.replace(
4-
/(ftp|https?):\/\/[\w_-]+(\.[\w_-]+)+[\w@?^=%&/~+#-.:,]*[\w@?^=%&/~+#-]/g,
4+
/(ftp|https?):\/\/[\w_-]+(\.[\w_-]+)+[\w@?^=%&/~+#.:,-]*[\w@?^=%&/~+#-]/g,
55
match => `<${match}>`,
66
)
77
.replace(/[\w._%+-]+@[\w.-]+\.[a-zA-Z]{2,}/g, match => `<${match}>`);

0 commit comments

Comments
 (0)