summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-01-26 00:07:39 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-01-26 00:08:56 -0700
commit4148776399cb7ea5e10c74dc465e4e1e682cb399 (patch)
treedaf8a3aa6521d3d56aa986f10c3d23ea1b016f4b /compat
parente483afa206686ce748ad270140f99fad9d713aad (diff)
Move the Parser to the internal package
Diffstat (limited to 'compat')
-rw-r--r--compat/json/compat_test.go6
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