mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 07:21:50 +08:00
Workaround for an edge case
This commit is contained in:
parent
0b433e5e72
commit
22712326b2
@ -3059,8 +3059,10 @@ class SongSelect{
|
|||||||
a[0].ranges = this.indexesToRanges(a[0].indexes)
|
a[0].ranges = this.indexesToRanges(a[0].indexes)
|
||||||
if(a[0].indexes.length > 1){
|
if(a[0].indexes.length > 1){
|
||||||
if(a[0].ranges.length > a[0].indexes.length / 2){
|
if(a[0].ranges.length > a[0].indexes.length / 2){
|
||||||
|
if(a[0].target.indexOf(query) === -1){
|
||||||
score0 = -Infinity
|
score0 = -Infinity
|
||||||
a[0].ranges = null
|
a[0].ranges = null
|
||||||
|
}
|
||||||
}else if(a[0].ranges.length !== 1){
|
}else if(a[0].ranges.length !== 1){
|
||||||
score0 -= 9000
|
score0 -= 9000
|
||||||
}
|
}
|
||||||
@ -3071,8 +3073,10 @@ class SongSelect{
|
|||||||
a[1].ranges = this.indexesToRanges(a[1].indexes)
|
a[1].ranges = this.indexesToRanges(a[1].indexes)
|
||||||
if(a[1].indexes.length > 1){
|
if(a[1].indexes.length > 1){
|
||||||
if(a[1].ranges.length > a[1].indexes.length / 2){
|
if(a[1].ranges.length > a[1].indexes.length / 2){
|
||||||
|
if(a[1].target.indexOf(query) === -1){
|
||||||
score1 = -Infinity
|
score1 = -Infinity
|
||||||
a[1].ranges = null
|
a[1].ranges = null
|
||||||
|
}
|
||||||
}else if(a[1].ranges.length !== 1){
|
}else if(a[1].ranges.length !== 1){
|
||||||
score1 -= 9000
|
score1 -= 9000
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user