Skip to content

Commit 4e45283

Browse files
committed
fix duration suffix parsing
1 parent 0c98c9c commit 4e45283

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • pkg/security/secl/compiler/ast

pkg/security/secl/compiler/ast/secl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Comment = ("#" | "//") { "\u0000"…"\uffff"-"\n" } .
2727
CIDR = IP "/" digit { digit } .
2828
IP = (ipv4 | ipv6) .
2929
Variable = "${" (alpha | "_") { "_" | alpha | digit | "." } "}" .
30-
Duration = digit { digit } ("ms" | "s" | "m" | "h" | "d") .
30+
Duration = digit { digit } ("m" | "s" | "m" | "h") { "s" } .
3131
Regexp = "r\"" { "\u0000"…"\uffff"-"\""-"\\" | "\\" any } "\"" .
3232
Ident = (alpha | "_") { "_" | alpha | digit | "." | "[" | "]" } .
3333
String = "\"" { "\u0000"…"\uffff"-"\""-"\\" | "\\" any } "\"" .

0 commit comments

Comments
 (0)