1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-15 15:32:28 +02:00

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

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 = '';