fix: Fixed s3 event filtering wildcard case bug

This commit is contained in:
jonaustin09
2024-05-07 11:52:33 -04:00
parent e17781b592
commit 9fa26d9eb2
+1 -1
View File
@@ -121,7 +121,7 @@ func (ef EventFilter) Filter(event EventType) bool {
}
// check wildcard match
wildCardEv := EventType(string(event[strings.LastIndex(string(event), ":")+1]) + "*")
wildCardEv := EventType(string(event[:strings.LastIndex(string(event), ":")+1]) + "*")
wildcard, found := ef[wildCardEv]
if found {
return wildcard