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
+2 -2
View File
@@ -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
}