Fix Regex

Double quoted stings in yaml allow for escape sequences like `\n` and `\t` but when used around a regex, salt will hang up on `\d` not being a valid escape sequence. Switching to single quotes so escapes aren't processed.
This commit is contained in:
Corey Ogburn
2026-09-02 09:08:46 -06:00
parent 42a62c90a5
commit 332a5d11bc
+1 -1
View File
@@ -855,7 +855,7 @@ soc:
forcedType: bool
dontScanBefore:
description: A date specifying how far back to scan for memories. Must be in UTC format (2026-08-31T22:05:48Z).
regex: "^(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z)?$"
regex: '^(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z)?$'
regexFailureMessage: Expecting date in RFC3339 format (2026-08-31T22:05:48Z)
global: True
advanced: True