fix: statistics
This commit is contained in:
parent
604b029a9d
commit
0d5b45cd11
|
|
@ -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 [];
|
||||
|
|
|
|||
Loading…
Reference in New Issue