fix: statistics

This commit is contained in:
Nevo David 2026-01-18 11:51:40 +07:00
parent 604b029a9d
commit 0d5b45cd11
1 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ import { ShortIo } from './providers/short.io';
import { Kutt } from './providers/kutt';
import { LinkDrip } from './providers/linkdrip';
import { uniq } from 'lodash';
import striptags from 'striptags';
const getProvider = (): ShortLinking => {
if (process.env.DUB_TOKEN) {
@ -139,7 +140,7 @@ export class ShortLinkService {
)}/[^\\s]*`,
'g'
);
const urls = mergeMessages.match(regex);
const urls = striptags(mergeMessages).match(regex);
if (!urls) {
// No URLs found, return the original text
return [];