diff --git a/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/choose-pac-provider/index.js b/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/choose-pac-provider/index.js index 214e610..6558faf 100644 --- a/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/choose-pac-provider/index.js +++ b/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/choose-pac-provider/index.js @@ -581,16 +581,16 @@ HTTPS 11.22.33.44:8080;">${conf.value || localStorage.getItem(uiRaw) || ''} str ) - .every( - (str) => - /^(?:DIRECT|(?:(?:HTTPS?|PROXY|SOCKS(?:4|5)?)\s+\S+))$/g - .test(str) - ); - if (!ifValid) { + .filter( (str) => str ); + const ifValid = ifValidArr.every( + (str) => + /^(?:DIRECT|(?:(?:HTTPS?|PROXY|SOCKS(?:4|5)?)\s+\S+))$/g + .test(str) + ); + if (!(ifValidArr.length && ifValid)) { return showErrors(new TypeError( 'Неверный формат своих прокси. Свертесь с документацией.' ));