Sound better now!

This commit is contained in:
Alex Gleason 2023-05-05 16:26:58 +00:00 committed by Ahmad Dakhlallah
parent 06d8370fe6
commit 7a0ce1aab4
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ export function isRtl(text: string): boolean {
return false;
}
// Remove http(s), (s)ftp, ws(s), blob and smtp(s) links
text = text.replace(/(?:https?|ftp|sftp|ws|wss|blob|smtp|smtps):\/\/[\n\S]+/g, '');
text = text.replace(/(?:https?|ftp|sftp|ws|wss|blob|smtp|smtps):\/\/[\S]+/g, '');
// Remove email address links
text = text.replace(/(mailto:)([^\s@]+@[^\s@]+\.[^\s@]+)/g, '');
// Remove Phone numbe links