arti: cfg: Actually uncomment *all* the things in the example

This commit is contained in:
Ian Jackson 2022-05-26 15:11:57 +01:00
parent 017906cdc7
commit e0d9d24348
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ mod test {
fn uncomment_example_settings(template: &str) -> String {
let re = Regex::new(r#"(?m)^\#([^ \n])"#).unwrap();
re.replace(template, |cap: &regex::Captures<'_>| -> _ {
re.replace_all(template, |cap: &regex::Captures<'_>| -> _ {
cap.get(1).unwrap().as_str().to_string()
})
.into()