build: support directive without argument.

This commit is contained in:
Alexandre Pujol 2024-09-26 22:09:49 +01:00
parent 05a489e021
commit fbdf9cea64
Failed to generate hash of commit

View file

@ -20,7 +20,7 @@ var (
// Build the profiles with the following directive applied
Directives = map[string]Directive{}
regDirective = regexp.MustCompile(`(?m).*` + Keyword + `([a-z]*) (.*)`)
regDirective = regexp.MustCompile(`(?m).*` + Keyword + `([a-z]*)( .*)?`)
)
// Main directive interface