зеркало из https://github.com/mozilla/pjs.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:
Родитель
218715b121
Коммит
7ddef8d370
|
@ -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" +
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче