diff options
| author | Sophie Forrest <git@sophieforrest.com> | 2024-09-22 22:13:27 +1200 |
|---|---|---|
| committer | Sophie Forrest <git@sophieforrest.com> | 2024-09-22 22:13:27 +1200 |
| commit | 44c77a7e60711cb4ae02775ddac49a80eb395223 (patch) | |
| tree | a424fd67e9f650d2d7a1e3afdbb9ae4a732776a0 | |
| parent | a77ce3001b619a33f82597a66193307086005d86 (diff) | |
feat(trimester): accept "3+1+2/3" value
Previously not accepted, but it is used in the 2024 data set.
Diffstat (limited to '')
| -rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs index 8e1261e..89c43f1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -249,7 +249,7 @@ impl TryFrom<&str> for Trimester { "1+2/3" => Ok(Self::OneTwo), "2+3/3" => Ok(Self::TwoThree), "3+1/3" => Ok(Self::ThreeOne), - "1+2+3/3" | "2+3+1/3" | "full year" => Ok(Self::FullYear), + "1+2+3/3" | "2+3+1/3" | "3+1+2/3" | "full year" => Ok(Self::FullYear), _ => Err("Invalid trimester."), } } |