aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/robertkrimen/otto/value_number.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/robertkrimen/otto/value_number.go')
-rw-r--r--vendor/github.com/robertkrimen/otto/value_number.go2
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