Commit a2fde2ad by Kim Eunchul

#40821 【TECSS Web 1.9.2.6】「or」「(」「半角スペース」で検索した時の結果が統一されていない

parent 4d15420e
......@@ -1076,7 +1076,7 @@ CONTENTSEARCH.searchEventButtonFunction = function() {
}
for(var i = 0; i < dummyArray.length; i++){
if(dummyArray[i].includes(")(") && dummyArray[i].charAt(0) != "'" && dummyArray[i].charAt(dummyArray.length - 1) != "'"){
if(dummyArray[i].indexOf(")(") > 0 && dummyArray[i].charAt(0) != "'" && dummyArray[i].charAt(dummyArray.length - 1) != "'"){
searchText = ")";
}
}
......
......@@ -808,7 +808,7 @@ CONTENTVIEW.searchHandle = function() {
} while (match != null);
for(var i = 0; i < dummyArray.length; i++){
if(dummyArray[i].includes(")(") && dummyArray[i].charAt(0) != "'" && dummyArray[i].charAt(dummyArray.length - 1) != "'"){
if(dummyArray[i].indexOf(")(") > 0 && dummyArray[i].charAt(0) != "'" && dummyArray[i].charAt(dummyArray.length - 1) != "'"){
throw new Error('quotes error!');
}
}
......
......@@ -378,7 +378,7 @@ HEADER.searchHeaderButtonFunction = function(){
}
for(var i = 0; i < dummyArray.length; i++){
if(dummyArray[i].includes(")(") && dummyArray[i].charAt(0) != "'" && dummyArray[i].charAt(dummyArray.length - 1) != "'"){
if(dummyArray[i].indexOf(")(") > 0 && dummyArray[i].charAt(0) != "'" && dummyArray[i].charAt(dummyArray.length - 1) != "'"){
myQuery += ' &&';
}
}
......
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