arti: cfg: Actually uncomment *all* the things in the example
This commit is contained in:
parent
017906cdc7
commit
e0d9d24348
|
@ -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: ®ex::Captures<'_>| -> _ {
|
||||
re.replace_all(template, |cap: ®ex::Captures<'_>| -> _ {
|
||||
cap.get(1).unwrap().as_str().to_string()
|
||||
})
|
||||
.into()
|
||||
|
|
Loading…
Reference in New Issue