Skip to content

Commit 29aa4dd

Browse files
mbovotembleking
andauthored
fix: Fix regexp in order to match right strings and multiple whitespaces (#85)
Co-authored-by: Fede Barcelona <[email protected]>
1 parent 6df497c commit 29aa4dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sysdig/resource_sysdig_monitor_alert_event.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ func eventAlertFromResourceData(data *schema.ResourceData) (alert *monitor.Alert
170170
return
171171
}
172172

173-
// https://regex101.com/r/mmpz0D/1
173+
// https://regex101.com/r/79VIkC/1
174174
var alertConditionRegex = regexp.MustCompile(`count\(customEvent\)\s*(?P<rel>[^\w\s]+)\s*(?P<count>\d+)`)
175175

176176
func eventAlertToResourceData(alert *monitor.Alert, data *schema.ResourceData) (err error) {

0 commit comments

Comments
 (0)