Просмотр исходного кода

tech(): replace spaces to handle input more graceful

bergquist 9 лет назад
Родитель
Сommit
c9b7f8603e
1 измененных файлов с 2 добавлено и 0 удалено
  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" {