Fix regex to validate URL of imported lists

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1306
This commit is contained in:
Raymond Hill 2020-10-23 06:25:08 -04:00
parent 61ac9a5b6e
commit 2b5a853d8c
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@
/******************************************************************************/
const lastUpdateTemplateString = vAPI.i18n('3pLastUpdate');
const reValidExternalList = /[a-z-]+:\/\/\S*\/\S+/;
const reValidExternalList = /^[a-z-]+:\/\/(?:\S+\/\S*|\/\S+)/m;
let listDetails = {};
let filteringSettingsHash = '';