Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Priority support. #54

Open
ghost opened this issue Oct 28, 2018 · 3 comments
Open

Priority support. #54

ghost opened this issue Oct 28, 2018 · 3 comments

Comments

@ghost
Copy link

ghost commented Oct 28, 2018

I think it would be better to add a priority level support, including blacklist and whitelist.

A concrete example:
Blacklist A:A
Whitelist B:B
Blacklist C:C

Priority level: A>B>C

Message contains "C" will be intercepted by default. But if the message contains "B" (without "A") it will be allowed although it contains "C". Identically, message contains "A" & "B" will be intercepted.

@apsun
Copy link
Owner

apsun commented Oct 28, 2018

I thought about this a long time ago, I believe the main reason I never implemented it was because I suck at UI and didn't want to implement rearranging list items. As you can see I'm super lazy.

For your particular use case, you can probably just use a negative lookahead regex.

@ghost
Copy link
Author

ghost commented Oct 28, 2018

I see. Anyway, thanks for your help.

@apsun
Copy link
Owner

apsun commented Oct 28, 2018

I do want to implement ordering, but probably won't have the time to do it myself anytime soon. Work is hard :-/

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 a pull request may close this issue.

1 participant