Fix ordinal parsing due to copy

This commit is contained in:
ferhat elmas
2019-04-26 01:42:47 +02:00
parent 2df4713d07
commit b0e14136e9
2 changed files with 2 additions and 1 deletions

View File

@@ -781,7 +781,7 @@ iterRunes:
// April 8th 2009
switch r {
case 't', 'T':
if p.nextIs(i, 'h') || p.nextIs(i, 'h') {
if p.nextIs(i, 'h') || p.nextIs(i, 'H') {
if len(datestr) > i+2 {
return parseTime(fmt.Sprintf("%s%s", p.datestr[0:i], p.datestr[i+2:]), loc)
}