Skip to content

Commit 69e9682

Browse files
committed
correctly capture variables, which can contain underscores
1 parent 632fbc5 commit 69e9682

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/od_ref_bot/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ fn format_body(body: &str, data: &Data) -> String {
272272
let mut replaced_body = body.to_string();
273273

274274
let link_finder_regex =
275-
Regex::new(r##"\{\{ *?([a-zA-Z_]*)\(((var|proc)="([a-zA-Z]*?)")? ?\).*?\}\}"##).unwrap();
275+
Regex::new(r##"\{\{ *?([a-zA-Z_]*)\(((var|proc)="([a-zA-Z_]*?)")? ?\).*?\}\}"##).unwrap();
276276

277277
for capture in link_finder_regex.captures_iter(body) {
278278
let original = capture.get(0).unwrap().as_str();

0 commit comments

Comments
 (0)