Skip to content

Commit 68cf942

Browse files
Zoran Cvetkovincrypto32
authored andcommitted
fix regex
1 parent 23c3fb5 commit 68cf942

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

store/postgres/src/relational_queries.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ impl EntityData {
488488
let mut entries = map.into_iter().filter_map(move |(key, json)| {
489489
if key == "block_range" {
490490
let r = json.as_str().unwrap();
491-
let rx = Regex::new("\\[(?P<start>[0-9]+),[0-9]+\\)").unwrap();
491+
let rx = Regex::new("\\[(?P<start>[0-9]+),([0-9]+)?\\)").unwrap();
492492
let cap = rx.captures(r).unwrap();
493493
let start = cap
494494
.name("start")

0 commit comments

Comments
 (0)