Skip to content

Commit

Permalink
Space
Browse files Browse the repository at this point in the history
  • Loading branch information
garethj2 committed Feb 19, 2024
1 parent 8e2784d commit 81c8bac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/haystack/val/dis_macro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ where
// Replace $<pod::key>
let result = {
static LOCALIZED_REG_EX: OnceLock<Regex> = OnceLock::new();

let localized_regex = LOCALIZED_REG_EX.get_or_init(|| Regex::new(r"\$<([^>]+)>").unwrap());

localized_regex.replace_all(
Expand Down

0 comments on commit 81c8bac

Please sign in to comment.