From 64ca8fe1e4244e749fa0499428dccf854b07dfc0 Mon Sep 17 00:00:00 2001 From: William Petit Date: Thu, 27 Jun 2024 15:27:14 +0200 Subject: [PATCH] fix: wrong bit size --- internal/config/environment.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/internal/config/environment.go b/internal/config/environment.go index 0494bef..0e3cc1d 100644 --- a/internal/config/environment.go +++ b/internal/config/environment.go @@ -2,7 +2,6 @@ package config import ( "os" - "regexp" "strconv" "time" @@ -11,9 +10,6 @@ import ( "gopkg.in/yaml.v3" ) -// var reVar = regexp.MustCompile(`^\${(\w+)}$`) -var reVar = regexp.MustCompile(`\${(.*?)}`) - type InterpolatedString string func (is *InterpolatedString) UnmarshalYAML(value *yaml.Node) error { @@ -71,7 +67,7 @@ func (ifl *InterpolatedFloat) UnmarshalYAML(value *yaml.Node) error { return errors.WithStack(err) } - floatVal, err := strconv.ParseFloat(str, 10) + floatVal, err := strconv.ParseFloat(str, 32) if err != nil { return errors.Wrapf(err, "could not parse float '%v', line '%d'", str, value.Line) }