Skip to content

Commit f4c0e75

Browse files
committed
remove unnecessary escape characters.
1 parent 12bcbc8 commit f4c0e75

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,5 +1,5 @@
11
export const autoLinkMd = (str: string) =>
22
str.replace(
3-
/(ftp|https?):\/\/[\w_-]+(\.[\w_-]+)+[\w@?^=%&\/~+#-.:,]*[\w@?^=%&\/~+#-]|[\w._%+-]+@[\w.-]+\.[a-zA-Z]{2,}/g,
3+
/(ftp|https?):\/\/[\w_-]+(\.[\w_-]+)+[\w@?^=%&/~+#-.:,]*[\w@?^=%&/~+#-]|[\w._%+-]+@[\w.-]+\.[a-zA-Z]{2,}/g,
44
match => `<${match}>`,
55
);

0 commit comments

Comments
 (0)