Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion generate-errors/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ pub fn get_error_pages(bevy_errors_path: &Path) -> anyhow::Result<HashMap<String

let mut results_map: HashMap<String, String> = HashMap::new();

let regex = Regex::new(r"# B[0-9]{4}")?;
for path in error_page_paths {
let file_name: String = path
.file_name()
Expand All @@ -66,7 +67,6 @@ pub fn get_error_pages(bevy_errors_path: &Path) -> anyhow::Result<HashMap<String
// The error pages already have a header built-in
// but Zola provides its own title header
// so we need to remove this for proper formatting
let regex = Regex::new(r"# B[0-9]{4}")?;
let regex_content = regex.replace(content.as_str(), "");

// Code blocks will be invalid unless
Expand Down
2 changes: 1 addition & 1 deletion generate-release/src/github_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ impl GithubClient {
IssueState::Merged => responses.retain(|pr| {
pr.pull_request
.as_ref()
.map_or(false, |pr| pr.merged_at.is_some())
.is_some_and(|pr| pr.merged_at.is_some())
}),
IssueState::All => (),
};
Expand Down
Loading