diff --git a/netwerk/base/src/nsProxyAutoConfig.js b/netwerk/base/src/nsProxyAutoConfig.js index d637cecc1ae..ddb03df1672 100644 --- a/netwerk/base/src/nsProxyAutoConfig.js +++ b/netwerk/base/src/nsProxyAutoConfig.js @@ -299,7 +299,7 @@ var pacUtils = " pattern = pattern.replace(/\\./g, '\\\\.');\n" + " pattern = pattern.replace(/\\*/g, '.*');\n" + " pattern = pattern.replace(/\\?/g, '.');\n" + -" var newRe = new RegExp(pattern);\n" + +" var newRe = new RegExp('^'+pattern+'$');\n" + " return newRe.test(url);\n" + "}\n" +