comparison icf/icf.go @ 8:2ffb8028ccbb

add loggingmodes and fix path matching
author Atarwn Gard <a@qwa.su>
date Tue, 17 Mar 2026 19:55:07 +0500
parents 54ab94198677
children
comparison
equal deleted inserted replaced
7:8e4813b4e509 8:2ffb8028ccbb
303 return 0, "", false 303 return 0, "", false
304 } 304 }
305 capName := pat[1:end] 305 capName := pat[1:end]
306 rest := pat[end+1:] 306 rest := pat[end+1:]
307 307
308 for split := 1; split <= len(inp); split++ { 308 for split := len(inp); split >= 1; split-- {
309 score, finalRem, ok := matchCaptures(rest, inp[split:], caps) 309 score, finalRem, ok := matchCaptures(rest, inp[split:], caps)
310 if ok { 310 if ok {
311 if capName != "_" { 311 if capName != "_" {
312 caps[capName] = inp[:split] 312 caps[capName] = inp[:split]
313 } 313 }