Skip to content

Commit

Permalink
Remove plus in parse method
Browse files Browse the repository at this point in the history
  • Loading branch information
frozzare committed Feb 22, 2024
1 parent a92e7d0 commit 6f434d7
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 @@ -67,7 +67,7 @@ impl TryFrom<&str> for Organisationsnummer {
None => 0,
};

let mut number = org.to_string().replace("-", "");
let mut number = org.to_string().replace("-", "").replace("+", "");

// May only be prefixed with 16.
if prefix != 0 {
Expand Down

0 comments on commit 6f434d7

Please sign in to comment.