mirror of
https://github.com/wassname/talk.git
synced 2026-09-11 12:51:33 +08:00
coral-plugin-commnet-content
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
const linkRE = /(((http|ftp|https)\:\/\/)?([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])?)/gmi;
|
||||
|
||||
const isLink = (s) => linkRE.test(s);
|
||||
|
||||
export default isLink;
|
||||
Reference in New Issue
Block a user