We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e75fe2c + 3398f72 commit cfe8c33Copy full SHA for cfe8c33
packages/tools/src/bin/remove_markup.rs
@@ -26,7 +26,7 @@ fn remove_markup(input: String) -> String {
26
let caption_start_regex =
27
Regex::new(r#"\A<span class="caption">(.*)\z"#).unwrap();
28
let caption_end_regex = Regex::new(r#"(.*)</span>\z"#).unwrap();
29
- let regexen = vec![filename_regex, caption_start_regex, caption_end_regex];
+ let regexen = [filename_regex, caption_start_regex, caption_end_regex];
30
31
let lines: Vec<_> = input
32
.lines()
0 commit comments