test: fix test

This commit is contained in:
vicanso 2022-02-19 09:26:11 +08:00
parent 9763d48eef
commit 7ea306b7f4
4 changed files with 12 additions and 7 deletions

View file

@ -76,7 +76,7 @@ type EChartsSeriesData struct {
}
type _EChartsSeriesData EChartsSeriesData
var numericRep = regexp.MustCompile("^[-+]?[0-9]+(?:\\.[0-9]+)?$")
var numericRep = regexp.MustCompile(`^[-+]?[0-9]+(?:\\.[0-9]+)?$`)
func (es *EChartsSeriesData) UnmarshalJSON(data []byte) error {
data = bytes.TrimSpace(data)