Commit 78373de5 by Kim Eunchul

#39714 andやor検索(ウェブ版error処理)

parent a962c89f
......@@ -1094,7 +1094,7 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
myQuery += ' )';
}else{
if(myArray[i - 1] == "OR" || myArray[i - 1] == "or"){
myRegExpArr[i] = new RegExp(myArray[i].slice(-1));
myRegExpArr[i] = new RegExp(myArray[i].slice(0, -1));
myQuery += ' || true )';
}else{
myRegExpArr[i] = new RegExp(myArray[i].slice(0, -1));
......
......@@ -793,7 +793,7 @@ CONTENTVIEW.searchHandle = function() {
myQuery += ' )';
}else{
if(myArray[i - 1] == "OR" || myArray[i - 1] == "or"){
myRegExpArr[i] = new RegExp(myArray[i].slice(-1));
myRegExpArr[i] = new RegExp(myArray[i].slice(0, -1));
myQuery += ' || myRegExpArr[' + i + '].test(contentPage[nIndex].pageText) )';
}else{
myRegExpArr[i] = new RegExp(myArray[i].slice(0, -1));
......@@ -823,10 +823,10 @@ CONTENTVIEW.searchHandle = function() {
}
}
// }catch(error){
// alert('正しくない検索です');
// return;
// }
}catch(error){
alert('正しくない検索です');
return;
}
if (sPageNo.length > 0) {
//title start
......
......@@ -322,7 +322,7 @@ HEADER.searchHeaderButtonFunction = function(){
myQuery += ' )';
}else{
if(myArray[i - 1] == "OR" || myArray[i - 1] == "or"){
myRegExpArr[i] = new RegExp(myArray[i].slice(-1));
myRegExpArr[i] = new RegExp(myArray[i].slice(0, -1));
myQuery += ' || true )';
}else{
myRegExpArr[i] = new RegExp(myArray[i].slice(0, -1));
......
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