diff --git a/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/ProxyEditor.js b/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/ProxyEditor.js index bf8ef4f..bbca265 100644 --- a/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/ProxyEditor.js +++ b/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/options/src/components/ProxyEditor.js @@ -505,7 +505,7 @@ PROXY foobar.com:8080; # Not HTTP!`.trim()} return proxyStringRaw .replace(/#.*$/mg, '') // Strip comments. - .replace(/\s*DIRECT\s*/g, '') // Remove DIRECT from old versions. + .replace(/[^\S\r\n]*DIRECT[^\S\r\n]*/g, '') // Remove DIRECT from old versions. .split( /(?:[^\S\r\n]*(?:;|\r?\n)+[^\S\r\n]*)+/g ) .map( (p) => p.trim() ) .filter((p) => p)