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 12bcbc8 commit f4c0e75Copy full SHA for f4c0e75
lib/src/index.ts
@@ -1,5 +1,5 @@
1
export const autoLinkMd = (str: string) =>
2
str.replace(
3
- /(ftp|https?):\/\/[\w_-]+(\.[\w_-]+)+[\w@?^=%&\/~+#-.:,]*[\w@?^=%&\/~+#-]|[\w._%+-]+@[\w.-]+\.[a-zA-Z]{2,}/g,
+ /(ftp|https?):\/\/[\w_-]+(\.[\w_-]+)+[\w@?^=%&/~+#-.:,]*[\w@?^=%&/~+#-]|[\w._%+-]+@[\w.-]+\.[a-zA-Z]{2,}/g,
4
match => `<${match}>`,
5
);
0 commit comments