diff options
Diffstat (limited to 'src/lib/strings.ts')
-rw-r--r-- | src/lib/strings.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/strings.ts b/src/lib/strings.ts index 77d8298ac..04d8656f7 100644 --- a/src/lib/strings.ts +++ b/src/lib/strings.ts @@ -96,7 +96,7 @@ export function extractEntities( { // links const re = - /(^|\s|\()((https?:\/\/[\S]+)|((?<domain>[a-z][a-z0-9]*(\.[a-z0-9]+)+)[\S]*))/gm + /(^|\s|\()((https?:\/\/[\S]+)|((?<domain>[a-z][a-z0-9]*(\.[a-z0-9]+)+)[\S]*))/gim while ((match = re.exec(text))) { let value = match[2] if (!value.startsWith('http')) { |