From 80ce81ef3147ff27023f155869018e3e825f3161 Mon Sep 17 00:00:00 2001 From: safishamsi Date: Tue, 11 Aug 2026 17:06:53 +0100 Subject: [PATCH] fix(detect): NFC-normalize the recomputed scan-root-relative path (#2468 follow-up) The #2475 fix recomputed the match path against the explicit scan root but skipped the _nfc() normalization rel_anchor gets, so an NFD-named path could miss a parent ignore pattern under the #2544 NFC-matching regime. Co-Authored-By: Claude Opus 4.8 (1M context) --- graphify/detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphify/detect.py b/graphify/detect.py index 1c953c36..015a2099 100644 --- a/graphify/detect.py +++ b/graphify/detect.py @@ -1193,7 +1193,7 @@ def _is_ignored( if not path_relative: try: if len(root.parts) > len(anchor.parts): - rel = str(target.relative_to(root)).replace(os.sep, "/") + rel = _nfc(str(target.relative_to(root)).replace(os.sep, "/")) except ValueError: pass matched = _matches(rel, p, path_relative=path_relative)