Skip to content

Commit 316664e

Browse files
authored
fix workflow custom variables render (#4615)
Signed-off-by: Patrick Zhao <zhaoyu@koderover.com>
1 parent d11425f commit 316664e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pkg/microservice/aslan/config/consts.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -752,16 +752,16 @@ const (
752752
)
753753

754754
const (
755-
VariableRegEx = `{{\.([\p{L}\d-]+(\.[\p{L}\d-]+)*.)}}`
756-
VariableOutputRegEx = `{{\.([\p{L}\d-]+(\.[\p{L}\d-]+)*).output.[\p{L}\d-]+}}`
757-
ReplacedTempVariableRegEx = `TEMP_PLACEHOLDER_([\p{L}\d-]+(\.[\p{L}\d-]+)*)`
755+
VariableRegEx = `{{\.([\p{L}\d-]+(\.[\p{L}\d_-]+)*.)}}`
756+
VariableOutputRegEx = `{{\.([\p{L}\d-]+(\.[\p{L}\d_-]+)*).output.[\p{L}\d_-]+}}`
757+
ReplacedTempVariableRegEx = `TEMP_PLACEHOLDER_([\p{L}\d-]+(\.[\p{L}\d_-]+)*)`
758758
)
759759

760760
type ValueMergeStrategy string
761761

762762
const (
763763
ValueMergeStrategyReuseValue ValueMergeStrategy = "reuse-values"
764-
ValueMergeStrategyOverride ValueMergeStrategy= "override"
764+
ValueMergeStrategyOverride ValueMergeStrategy = "override"
765765
)
766766

767767
type YAMLMergeStrategy string

0 commit comments

Comments
 (0)