1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-01 21:47:46 +00:00

Fix month parse for months with leading whitespace

This commit is contained in:
electricboogie 2021-04-10 12:02:02 -05:00
parent 843be9e149
commit 2d9f15d12c

View file

@ -1291,7 +1291,7 @@ fn month_parse(line: &str) -> Month {
// GNU splits at any 3 letter match "JUNNNN" is JUN
let pattern = if line.trim().len().ge(&3) {
// Split a 3 and get first element of tuple ".0"
line.split_at(3).0
line.trim().split_at(3).0
} else {
""
};