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.
1 parent a570298 commit 55d79e1Copy full SHA for 55d79e1
crates/rust-project-goals-cli/src/rfc.rs
@@ -92,11 +92,11 @@ pub fn generate_rfc(path: &Path) -> anyhow::Result<()> {
92
)
93
})?;
94
95
- let regex = Regex::new(r"\((.*).md(#[^)]*)?\)").unwrap();
+ let regex = Regex::new(r"\]\(([^(]*)\.md(#[^)]*)?\)").unwrap();
96
97
let result = regex.replace_all(
98
&generated_text,
99
- format!("(https://rust-lang.github.io/rust-project-goals/{timeframe}/$1.html$2)"),
+ format!("](https://rust-lang.github.io/rust-project-goals/{timeframe}/$1.html$2)"),
100
);
101
102
println!("{result}");
0 commit comments