fix: fix numberic regexp
This commit is contained in:
parent
78ba3017ae
commit
edee23a6dd
2 changed files with 8 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue