diff --git a/document-store/src/main/java/org/hypertrace/core/documentstore/model/subdoc/SubDocument.java b/document-store/src/main/java/org/hypertrace/core/documentstore/model/subdoc/SubDocument.java index b36e3855..77b30ced 100644 --- a/document-store/src/main/java/org/hypertrace/core/documentstore/model/subdoc/SubDocument.java +++ b/document-store/src/main/java/org/hypertrace/core/documentstore/model/subdoc/SubDocument.java @@ -19,7 +19,7 @@ public class SubDocument { private static final Set IMPLICIT_PATHS = Set.of(CREATED_TIME, LAST_UPDATED_TIME); private static final Pattern ALLOWED_CHARACTERS = - Pattern.compile("^[a-zA-Z0-9_]+(.[a-zA-Z0-9_]+)*$"); + Pattern.compile("^[a-zA-Z0-9_-]+(.[a-zA-Z0-9_-]+)*$"); String path;