mirror of
https://github.com/valitydev/botkube.git
synced 2024-11-06 08:25:19 +00:00
86d2572e56
Fixes issue #295 ##### ISSUE TYPE <!--- Pick one below and delete the rest: --> - Feature Pull Request ##### SUMMARY <!--- Describe the change, including rationale and design decisions --> This change allows to ignore whole sets of namespaces using the asterix expansion. It still does the exact match check for all the namespaces (separated by comma in config), but if it contains a `*`, it's actually replaced with `.*` and passed to `regexp.MatchString` to do the job. PR also contains couple of very simple test cases. <!--- If you are fixing an existing issue, please include "Fixes #nnn" in your PR comment; and describe briefly what the change does. --> <!--- Please list dependencies added with your change also --> deps: `namespace_checker.go` now imports also `regexp` Fixes #295 It's my very first golang code, so please let me know if it's not idiomatic go 🍪 |
||
---|---|---|
.. | ||
bot | ||
config | ||
controller | ||
events | ||
execute | ||
filterengine | ||
log | ||
metrics | ||
notify | ||
utils |