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:
parent
843be9e149
commit
2d9f15d12c
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
""
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue