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

Filters from list and regex are not all matched #2

Closed
jouir opened this issue Jan 20, 2023 · 1 comment
Closed

Filters from list and regex are not all matched #2

jouir opened this issue Jan 20, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jouir
Copy link
Owner

jouir commented Jan 20, 2023

With this list of session.Users:

  • test
  • test_1
  • test_2
  • postgres

And this configuration:

include-users:
  - test
include-users-regex: '^test_[0-9]$'

Users test, test_1 and test_2 should be included, but only test is.

Same for exclude filters:

exclude-users:
  - test
exclude-users-regex: '^test_[0-9]$'

Should include postgres but includes test_1, test_2 and postgres.

Version:

pgterminate version 1.0.0-763359c (compiled with go1.18.1)
@jouir jouir added the bug Something isn't working label Jan 20, 2023
@jouir jouir self-assigned this Jan 20, 2023
jouir added a commit that referenced this issue Jan 20, 2023
Signed-off-by: Julien Riou <julien@riou.xyz>
@jouir
Copy link
Owner Author

jouir commented Jan 20, 2023

Fixed in 1.0.1

@jouir jouir closed this as completed Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant