Skip to content

fix: remove 32-char truncation for user-defined filter paths#13423

Merged
DeJeune merged 1 commit intoCherryHQ:mainfrom
Jah-yee:fix/selection-filter-path-truncation
Mar 12, 2026
Merged

fix: remove 32-char truncation for user-defined filter paths#13423
DeJeune merged 1 commit intoCherryHQ:mainfrom
Jah-yee:fix/selection-filter-path-truncation

Conversation

@Jah-yee
Copy link
Copy Markdown
Contributor

@Jah-yee Jah-yee commented Mar 12, 2026

Summary

Previously, user-defined application paths in the Selection Toolbar filter list were being truncated to 32 characters due to .slice(0, 32). This caused paths with spaces like C:\Program Files\Microsoft Office\... to be saved incorrectly as c:\program files\microsoft offi.

Fix

This fix removes the arbitrary character limit to allow full Windows/Mac application paths to be stored correctly.

Testing

Manual testing:

  1. Open Selection Toolbar
  2. Go to Application Filter > Blacklist > Edit
  3. Enter a path with spaces: C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE
  4. Click Confirm
  5. Re-open Edit - full path should now be preserved

Related Issue

Fixes #13372

Previously, user-defined application paths in the Selection Toolbar
filter list were being truncated to 32 characters due to .slice(0, 32).
This caused paths with spaces like 'C:\Program Files\Microsoft Office\...'
to be saved incorrectly as 'c:\program files\microsoft offi'.

This fix removes the arbitrary character limit to allow full Windows/Mac
application paths to be stored correctly.

Fixes: CherryHQ#13372
Copy link
Copy Markdown
Contributor

@cherry-ai-bot cherry-ai-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a focused fix for a clearly incorrect normalization step. Removing the arbitrary 32-character truncation restores expected behavior for real Windows/macOS application paths while keeping the existing trim/lowercase/split/dedup flow unchanged. LGTM ✅

@DeJeune DeJeune merged commit 0b3a1de into CherryHQ:main Mar 12, 2026
11 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.

[Bug]: Selection Toolbar - Cannot save application paths with spaces

2 participants