fix regex

This commit is contained in:
Josh Patterson
2026-05-05 14:26:04 -04:00
parent f888a2ba6b
commit 652ac5d61f
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
# Elastic License 2.0.
{% set hid = data['id'] %}
{% if hid|regex_match('^[A-Za-z0-9._-]{1,253}$')
{% if hid|regex_match('^([A-Za-z0-9._-]{1,253})$')
and hid.endswith('_hypervisor')
and data['result'] == True %}