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 5b00c26 + 65645b0 commit 6d6bfebCopy full SHA for 6d6bfeb
zirgen/bootstrap/src/main.rs
@@ -159,8 +159,8 @@ fn get_bazel_bin() -> PathBuf {
159
}
160
161
fn strip_locations_and_whitespace(text: &str) -> Result<String> {
162
- // replace everything that might be a line number with '*'
163
- let re = Regex::new(":[0-9]+")?;
+ // replace everything that might be a line number or a copyright date with '*'
+ let re = Regex::new("(:[0-9]+)|(Copyright [0-9]+ RISC)")?;
164
let stripped = re.replace_all(text, "*");
165
166
// Remove anything that might be changed by reformatting
0 commit comments