Skip to content

Commit

Permalink
Remove plus in new method
Browse files Browse the repository at this point in the history
  • Loading branch information
frozzare committed Feb 22, 2024
1 parent 6f434d7 commit 05a3645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ impl Organisationsnummer {
match Personnummer::new(org) {
Ok(pnr) => Ok(Organisationsnummer {
personnummer: Some(pnr),
number: org.to_string().replace("-", ""),
number: org.to_string().replace("-", "").replace("+", ""),
}),
Err(_) => Organisationsnummer::try_from(org),
}
Expand Down

0 comments on commit 05a3645

Please sign in to comment.