From 57cfdf3e16f5ed7d9d7a98dab4b0a6cc4c1ef192 Mon Sep 17 00:00:00 2001 From: Arnas Udovic Date: Tue, 7 Jan 2025 08:26:35 +0200 Subject: [PATCH] abcex up --- go.mod | 2 +- go.sum | 4 ++-- tree.go | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 71a1bbe..2b926e1 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module g.arns.lt/zordsdavini/zord-tree go 1.21 require ( - g.arns.lt/zordsdavini/abcex/v3 v3.0.0 + g.arns.lt/zordsdavini/abcex/v4 v4.0.4 github.com/otiai10/copy v1.6.0 golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 ) diff --git a/go.sum b/go.sum index 083054b..0666709 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -g.arns.lt/zordsdavini/abcex/v3 v3.0.0 h1:LnlDtaBBOpgicMI/dcBUxlu4r4+IFt/MD19JemphgFc= -g.arns.lt/zordsdavini/abcex/v3 v3.0.0/go.mod h1:z2xqDlRFVnLMnCGpqRjbs9T9EY6lJKJnQmU3zJLSNq8= +g.arns.lt/zordsdavini/abcex/v4 v4.0.4 h1:idjvgkCjrjZfDxLyOcX7lCIdIndISDAkj77VCvhu8/c= +g.arns.lt/zordsdavini/abcex/v4 v4.0.4/go.mod h1:/+//gYSUtJrdsmTtWNoffRO4xD1BuPRUMGW4ynet7iE= github.com/otiai10/copy v1.6.0 h1:IinKAryFFuPONZ7cm6T6E2QX/vcJwSnlaA5lfoaXIiQ= github.com/otiai10/copy v1.6.0/go.mod h1:XWfuS3CrI0R6IE0FbgHsEazaXO8G0LpMp9o8tos0x4E= github.com/otiai10/curr v0.0.0-20150429015615-9b4961190c95/go.mod h1:9qAhocn7zKJG+0mI8eUu6xqkFDYS2kb2saOteoSB3cE= diff --git a/tree.go b/tree.go index b90d847..c877069 100644 --- a/tree.go +++ b/tree.go @@ -15,7 +15,7 @@ import ( "regexp" "strings" - abcex "g.arns.lt/zordsdavini/abcex/v3" + abcex "g.arns.lt/zordsdavini/abcex/v4" "golang.org/x/exp/slices" ) @@ -386,7 +386,7 @@ func addMissingId(dir string, id int64) error { break } if line == "---" { - err = addMeta(path, "id", abcex.Encode(id)) + err = addMeta(path, "id", abcex.Encode(id, abcex.BASE36)) if err != nil { return err } @@ -440,7 +440,7 @@ func getMaxId(dir string) (int64, error) { if strings.HasPrefix(line, "* id:") { line = strings.TrimPrefix(line, "* id:") - i := abcex.Decode(strings.Trim(line, " ")) + i := abcex.Decode(strings.Trim(line, " "), abcex.BASE36) if i > max { max = i }