Sfoglia il codice sorgente

tech(): replace spaces to handle input more graceful

bergquist 9 anni fa
parent
commit
c9b7f8603e
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      pkg/tsdb/testdata/scenarios.go

+ 2 - 0
pkg/tsdb/testdata/scenarios.go

@@ -90,6 +90,8 @@ func init() {
 			queryRes := tsdb.NewQueryResult()
 
 			stringInput := query.Model.Get("stringInput").MustString()
+			stringInput = strings.Replace(stringInput, " ", "", -1)
+
 			values := []null.Float{}
 			for _, strVal := range strings.Split(stringInput, ",") {
 				if strVal == "null" {