1
0
mirror of https://github.com/bspeice/dtparse synced 2024-11-12 17:08:09 -05:00

Fix another tokenization issue

This commit is contained in:
Bradlee Speice 2018-06-17 22:41:21 -04:00
parent 8787e321e2
commit 132fe314d5

View File

@ -1161,7 +1161,7 @@ impl Parser {
if let Ok(val) = tokens[idx + 2].parse::<i32>() {
ymd.append(val, &tokens[idx + 2], None);
} else if let Some(val) = info.get_month(&tokens[idx + 2]) {
ymd.append(val as i32, &value_repr, Some(YMDLabel::Month));
ymd.append(val as i32, &tokens[idx + 2], Some(YMDLabel::Month));
}
if idx + 3 < len_l && &tokens[idx + 3] == sep {