зеркало из https://github.com/mozilla/gecko-dev.git
fixes bug 117931 "Function shExpMatch in nsProxyAutoConfig.js: conversion
from shell pattern to regexp is incorrect." patch=zybi@talex.com.pl r=tingley@sundell.net sr=darin@netscape.com
This commit is contained in:
Родитель
b0f44a323d
Коммит
a47cc12899
|
@ -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" +
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче