syncthing/lib/ignore
Simon Frei 605fd6d726
fix(ignore): ensure normalization of patterns and paths match (fixes #9597) (#9717)
In ignores, normalize the input when parsing it.
When scanning, normalize earlier such that the path is already
normalized when checking ignores. This requires splitting normalization
of the string from normalization of the file, as we don't want to
attempt the latter if the file is ignored.

Closes #9598

---------

Co-authored-by: Jakob Borg <jakob@kastelo.net>
2024-09-28 17:16:44 +02:00
..
ignoreresult all: minimal set of changes for iOS app (#9619) 2024-07-31 07:31:14 +02:00
cache_test.go lib/ignore: Remove unused patterns in cache (#9601) 2024-07-02 11:01:00 +00:00
cache.go lib/ignore: Remove unused patterns in cache (#9601) 2024-07-02 11:01:00 +00:00
ignore_test.go fix(ignore): ensure normalization of patterns and paths match (fixes #9597) (#9717) 2024-09-28 17:16:44 +02:00
ignore.go fix(ignore): ensure normalization of patterns and paths match (fixes #9597) (#9717) 2024-09-28 17:16:44 +02:00