Skip to content

Commit

Permalink
generator: Fix support for platforms using CRLF (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-ha458 authored Oct 10, 2023
1 parent 939ef7c commit 3eb1fd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ pub struct Alias {

pub fn get_aliases(name_aliases: &'static str) -> Vec<Alias> {
let mut aliases = Vec::new();
for line in name_aliases.split('\n') {
for line in name_aliases.split(['\n', '\r']) {
if line.is_empty() {
continue;
}
Expand Down

0 comments on commit 3eb1fd5

Please sign in to comment.