Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

Commit

Permalink
fix other regex filters
Browse files Browse the repository at this point in the history
  • Loading branch information
eramdam committed Oct 23, 2021
1 parent 8847dce commit 6dc365f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/advancedMuteEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export const setupAME = makeBTDModule(({TD, jq}) => {
descriptor: 'tweets matching',
placeholder: 'Enter a regular expression',
function(t, e) {
const regex = new RegExp(t.value, 'g');
const regex = new RegExp(t.value, 'gi');

return !e.getFilterableText().match(regex);
},
Expand All @@ -144,7 +144,7 @@ export const setupAME = makeBTDModule(({TD, jq}) => {
placeholder: 'Enter a regular expression',
function(t, e) {
if (!e.user) return true;
const regex = new RegExp(t.value, 'g');
const regex = new RegExp(t.value, 'gi');

return !e.user.screenName.match(regex);
},
Expand Down

0 comments on commit 6dc365f

Please sign in to comment.