Skip to content

Commit

Permalink
Fix reading metadata with Windows line endings (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek authored Mar 3, 2024
1 parent fab1924 commit 21424bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ fn get_distribution_source() -> String {

fn set_project_from_metadata(metadata: &str, file_name: &str) {
for item in ["Name", "Version"] {
match Regex::new(&format!("(?m)^{item}: (.+)$"))
match Regex::new(&format!(r"(?m)^{item}: (\S+)"))
.unwrap()
.captures(metadata)
{
Expand Down
4 changes: 4 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## Unreleased

***Fixed:***

- Fix reading metadata with Windows line endings during build time from embedded distributions

## 0.15.0 - 2024-03-01

***Added:***
Expand Down

0 comments on commit 21424bf

Please sign in to comment.