From f09e3399f7195d48a1e57e4ae950fc687b629a8f Mon Sep 17 00:00:00 2001 From: Lee ByeongJun Date: Mon, 28 Oct 2024 14:33:15 +0900 Subject: [PATCH] fix --- examples/gno.land/p/demo/json/buffer.gno | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/gno.land/p/demo/json/buffer.gno b/examples/gno.land/p/demo/json/buffer.gno index b6596682314..a217ee653f9 100644 --- a/examples/gno.land/p/demo/json/buffer.gno +++ b/examples/gno.land/p/demo/json/buffer.gno @@ -3,7 +3,6 @@ package json import ( "errors" "io" - "unicode" "gno.land/p/demo/ufmt" ) @@ -33,7 +32,7 @@ func (b *buffer) first() (byte, error) { for ; b.index < b.length; b.index++ { c := b.data[b.index] - if !unicode.IsSpace(rune(c)) { + if !(c == whiteSpace || c == carriageReturn || c == newLine || c == tab) { return c, nil } }