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] {
|
||||
continue
|
||||
}
|
||||
code := strings.ToUpper(strings.TrimSpace(pool[pi].RegulationCode))
|
||||
code := strings.TrimSpace(pool[pi].RegulationCode)
|
||||
for _, cv := range r.CodeValues {
|
||||
if code == strings.ToUpper(cv) {
|
||||
if strings.EqualFold(code, cv) {
|
||||
byReg[ri] = append(byReg[ri], pool[pi])
|
||||
matched[pi] = true
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user