Skip to content

Fix #154: reject short/generic AppMatching leftover patterns - #167

Merged
iliyami merged 1 commit into
iliyami:mainfrom
Borisserz:fix/appmatching-short-patterns
Sep 17, 2026
Merged

iliyami merged 1 commit into
iliyami:mainfrom
Borisserz:fix/appmatching-short-patterns

Conversation

@Borisserz

Copy link
Copy Markdown
Contributor

Summary

  • filter generated leftover patterns shorter than three characters
  • reject the generic app token before filename substring matching
  • add regressions for X/Firefox and App 2.0.1/WhatsApp while preserving normal matches

Tests

  • swift test --filter AppMatchingTests (25 tests, 0 failures)

Closes #154

@Borisserz
Borisserz force-pushed the fix/appmatching-short-patterns branch from bfd4c22 to 2b77e5b Compare September 16, 2026 16:46
@iliyami

iliyami commented Sep 17, 2026

Copy link
Copy Markdown
Owner

Verified safe: strictly subtractive (count >= 3 and not 'app'), closes the short/generic leftover over-match without widening matching or touching deletion; composes with the earlier empty-pattern filter. Merging. Thanks @Borisserz!

@iliyami
iliyami merged commit eb5eb28 into iliyami:main Sep 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AppMatching emits short/generic patterns that over-match unrelated apps

2 participants