Skip to content

Commit

Permalink
fix(torii-grpc-server): adjust regex to support variable len correctly (
Browse files Browse the repository at this point in the history
#2803)

fix: adjust regex to support variable len correctly
  • Loading branch information
glihm authored Dec 13, 2024
1 parent 09dfaaf commit 8f72aea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/torii/grpc/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1161,7 +1161,7 @@ fn build_keys_pattern(clause: &proto::types::KeysClause) -> Result<String, Error
let mut keys_pattern = format!("^{}", keys.join("/"));

if clause.pattern_matching == proto::types::PatternMatching::VariableLen as i32 {
keys_pattern += &format!("/({})*", KEY_PATTERN);
keys_pattern += &format!("(/{})*", KEY_PATTERN);
}
keys_pattern += "/$";

Expand Down

0 comments on commit 8f72aea

Please sign in to comment.