diff options
author | Felix Lange <fjl@twurst.com> | 2017-02-16 20:21:11 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2017-02-16 20:44:09 +0800 |
commit | 2c4455b12aca82ccd29c05c1750c25430867e545 (patch) | |
tree | 0beb8c96c7bf6a5a82434ed79218e822927434c3 /vendor/github.com/robertkrimen/otto/value_number.go | |
parent | c8695fae359aa327da9203a57ffaf4f2d47d4370 (diff) | |
download | dexon-2c4455b12aca82ccd29c05c1750c25430867e545.tar dexon-2c4455b12aca82ccd29c05c1750c25430867e545.tar.gz dexon-2c4455b12aca82ccd29c05c1750c25430867e545.tar.bz2 dexon-2c4455b12aca82ccd29c05c1750c25430867e545.tar.lz dexon-2c4455b12aca82ccd29c05c1750c25430867e545.tar.xz dexon-2c4455b12aca82ccd29c05c1750c25430867e545.tar.zst dexon-2c4455b12aca82ccd29c05c1750c25430867e545.zip |
vendor: update dependencies with github.com/kardianos/govendor
Diffstat (limited to 'vendor/github.com/robertkrimen/otto/value_number.go')
-rw-r--r-- | vendor/github.com/robertkrimen/otto/value_number.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/robertkrimen/otto/value_number.go b/vendor/github.com/robertkrimen/otto/value_number.go index 870bf115b..8cbf136d2 100644 --- a/vendor/github.com/robertkrimen/otto/value_number.go +++ b/vendor/github.com/robertkrimen/otto/value_number.go @@ -11,7 +11,7 @@ import ( var stringToNumberParseInteger = regexp.MustCompile(`^(?:0[xX])`) func parseNumber(value string) float64 { - value = strings.TrimSpace(value) + value = strings.Trim(value, builtinString_trim_whitespace) if value == "" { return 0 |