Use roots value validator functions.

This commit is contained in:
Jay
2026-04-22 06:29:25 -04:00
parent 496112e0e0
commit 835dcb59a1
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ module git.wisehodl.dev/jay/go-heartwood
go 1.24.0 go 1.24.0
require ( require (
git.wisehodl.dev/jay/go-roots v0.3.1 git.wisehodl.dev/jay/go-roots v0.4.1
github.com/boltdb/bolt v1.3.1 github.com/boltdb/bolt v1.3.1
github.com/neo4j/neo4j-go-driver/v6 v6.0.0 github.com/neo4j/neo4j-go-driver/v6 v6.0.0
github.com/stretchr/testify v1.11.1 github.com/stretchr/testify v1.11.1
+2 -2
View File
@@ -151,7 +151,7 @@ func ExpandTaggedEvents(e roots.Event, s *EventSubgraph) {
name := tag[0] name := tag[0]
value := tag[1] value := tag[1]
if name != "e" || !roots.Hex64Pattern.MatchString(value) { if name != "e" || !roots.IsValidID(value) {
continue continue
} }
@@ -176,7 +176,7 @@ func ExpandTaggedUsers(e roots.Event, s *EventSubgraph) {
name := tag[0] name := tag[0]
value := tag[1] value := tag[1]
if name != "p" || !roots.Hex64Pattern.MatchString(value) { if name != "p" || !roots.IsValidKey(value) {
continue continue
} }