From 96021f9db3a7de460d2738883df9908692819622 Mon Sep 17 00:00:00 2001 From: enovikov11 Date: Wed, 1 Nov 2023 13:36:49 +0300 Subject: [PATCH] Better validation (clicks provider) --- src/providers/clicks/const.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/clicks/const.ts b/src/providers/clicks/const.ts index e4ce84a..00b597f 100644 --- a/src/providers/clicks/const.ts +++ b/src/providers/clicks/const.ts @@ -8,7 +8,7 @@ export const METHOD_NAME_ADD_FILE_EXTENSION = 'addFileExtension'; export const METHOD_NAME_TRACK_LINKS = 'trackLinks'; export const INTERNAL_LINK_STORAGE_KEY = 'il'; export const MAX_LEN_INTERNAL_LINK = 100; -export const BAD_PROTOCOL_RE = /^ *(data|javascript):/i; +export const BAD_PROTOCOL_RE = /^\s*(data|javascript):/i; export const REG_DOWNLOAD = new RegExp( arrayJoin('', [