corretto bug in ricerca testuale

This commit is contained in:
cesare 2024-02-12 14:14:40 +01:00
parent 449b30ea64
commit 698bb099d9
1 changed files with 5 additions and 4 deletions

View File

@ -1420,17 +1420,17 @@ function resetFrasi(){
noContext=false
inf = contesto[0].reduce((a, e, i) => {
if (e === 1)
a.push(i);
a.push(i+1);
return a;
}, []);
pur = contesto[1].reduce((a, e, i) => {
if (e === 1)
a.push(i);
a.push(i+1);
return a;
}, []);
par = contesto[2].reduce((a, e, i) => {
if (e === 1)
a.push(i);
a.push(i+1);
return a;
}, []);
}
@ -1478,7 +1478,8 @@ function resetFrasi(){
}
if (fnd){
//console.log('ipfound: '+forme[ip].split('_')[2]+' - '+forme[(ip+testo.length-1)].split('_')[2])
if(cont.length && !(parseInt(forme[ip].split('_')[1]) in cont)){
if(cont.length && !cont.includes(parseInt(forme[ip].split('_')[1]))){
continue
}
resultsInCantica.push(cantica)