diff --git a/go.mod b/go.mod index 5506f8d..3f0e7f4 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module git.wisehodl.dev/jay/go-heartwood go 1.24.0 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/neo4j/neo4j-go-driver/v6 v6.0.0 github.com/stretchr/testify v1.11.1 diff --git a/subgraph.go b/subgraph.go index 4f0577f..9d00bae 100644 --- a/subgraph.go +++ b/subgraph.go @@ -151,7 +151,7 @@ func ExpandTaggedEvents(e roots.Event, s *EventSubgraph) { name := tag[0] value := tag[1] - if name != "e" || !roots.Hex64Pattern.MatchString(value) { + if name != "e" || !roots.IsValidID(value) { continue } @@ -176,7 +176,7 @@ func ExpandTaggedUsers(e roots.Event, s *EventSubgraph) { name := tag[0] value := tag[1] - if name != "p" || !roots.Hex64Pattern.MatchString(value) { + if name != "p" || !roots.IsValidKey(value) { continue }