Word mutes are case sensitive #392

Closed
opened 2023-05-31 09:54:49 +00:00 by LunarEclipse · 1 comment

Current behavior:

Word mutes are case sensitive, i.e. if I add a word "Banana" to the word mute list, posts with "banana" will not be hidden.

Expected behavior:

Word mutes are case insensitive, i.e. if I add a word "Banana" to the word mute list, posts with "banana" or "bAnAnA" will be hidden.

Other information

I'm not sure how this interacts with the regex filters, those should probably just support adding regex flags after the pattern. Although I think case-insensitivity is still a reasonable default for those.

I've tested this with soft word mutes specifically, although this probably applies to both soft and hard mutes.

## Current behavior: Word mutes are case sensitive, i.e. if I add a word "Banana" to the word mute list, posts with "banana" will not be hidden. ## Expected behavior: Word mutes are case insensitive, i.e. if I add a word "Banana" to the word mute list, posts with "banana" or "bAnAnA" will be hidden. ## Other information I'm not sure how this interacts with the regex filters, those should probably just support adding regex flags after the pattern. Although I think case-insensitivity is still a reasonable default for those. I've tested this with soft word mutes specifically, although this probably applies to both soft and hard mutes.
Owner

Probably a left over from Japanese which does not have the uppercase/lowercase distinction as far as I know.

Making regex case insensitive by default is not an option because there would be no way to turn it off. You can add the i flag to the end of a regex if you want it to be case insensitive.

Probably a left over from Japanese which does not have the uppercase/lowercase distinction as far as I know. Making regex case insensitive by default is not an option because there would be no way to turn it off. You can add the `i` flag to the end of a regex if you want it to be case insensitive.
Sign in to join this conversation.
No Label
feature
fix
upkeep
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: FoundKeyGang/FoundKey#392
No description provided.