We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bb3371 commit 5ff99b1Copy full SHA for 5ff99b1
lib/src/index.ts
@@ -1,7 +1,7 @@
1
export const autoLinkMd = (str: string) =>
2
str
3
.replace(
4
- /(ftp|https?):\/\/[\w_-]+(\.[\w_-]+)+[\w@?^=%&/~+#-.:,]*[\w@?^=%&/~+#-]/g,
+ /(ftp|https?):\/\/[\w_-]+(\.[\w_-]+)+[\w@?^=%&/~+#.:,-]*[\w@?^=%&/~+#-]/g,
5
match => `<${match}>`,
6
)
7
.replace(/[\w._%+-]+@[\w.-]+\.[a-zA-Z]{2,}/g, match => `<${match}>`);
0 commit comments