Commit 411e530a authored by Dmitry.Shahtanov's avatar Dmitry.Shahtanov Committed by Alexander.Trofimov

заменил

.replace(/\~/g, "\\");
на
.replace(/(~\*)/g,"\\*").replace(/(~\?)/g, "\\?");
иначе, если пользователь введет~ в поиске, приложение упадет из-за неправильной регулярки.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48131 954022d7-b5bf-4e40-9824-e11837661b57
parent 4bd3f5a7
......@@ -8711,7 +8711,7 @@
.replace(/(~)?\?/g, function($0, $1){
return $1 ? $0 : '[\\w\\W]{1,1}';
})
.replace(/\~/g, "\\");
.replace(/(~\*)/g,"\\*").replace(/(~\?)/g, "\\?");
valueForSearching = new RegExp(valueForSearching, findFlags);
// Попробуем сначана найти
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment