diff options
Diffstat (limited to 'compat/json/compat_test.go')
-rw-r--r-- | compat/json/compat_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compat/json/compat_test.go b/compat/json/compat_test.go index 997d07e..23ee977 100644 --- a/compat/json/compat_test.go +++ b/compat/json/compat_test.go @@ -1,4 +1,4 @@ -// Copyright (C) 2022 Luke Shumaker <lukeshu@lukeshu.com> +// Copyright (C) 2022-2023 Luke Shumaker <lukeshu@lukeshu.com> // // SPDX-License-Identifier: GPL-2.0-or-later @@ -22,13 +22,13 @@ func checkValid(in []byte, scan *lowmemjson.ReEncoder) error { } func isValidNumber(s string) bool { - var parser lowmemjson.Parser + var parser internal.Parser for _, r := range s { if t, _ := parser.HandleRune(r); !t.IsNumber() { return false } } - if t, _ := parser.HandleEOF(); t == lowmemjson.RuneTypeError { + if t, _ := parser.HandleEOF(); t == internal.RuneTypeError { return false } return true |