fix(ucca): Cross-Reg 0070 — beide Domaenen im Router-Top-K (Known Defects 0) #47
@@ -72,9 +72,9 @@ func balanceByRegulation(pool []LegalSearchResult, regs []detectedRegulation, to
|
|||||||
if matched[pi] {
|
if matched[pi] {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
code := strings.ToUpper(strings.TrimSpace(pool[pi].RegulationCode))
|
code := strings.TrimSpace(pool[pi].RegulationCode)
|
||||||
for _, cv := range r.CodeValues {
|
for _, cv := range r.CodeValues {
|
||||||
if code == strings.ToUpper(cv) {
|
if strings.EqualFold(code, cv) {
|
||||||
byReg[ri] = append(byReg[ri], pool[pi])
|
byReg[ri] = append(byReg[ri], pool[pi])
|
||||||
matched[pi] = true
|
matched[pi] = true
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user