Skip to content

Commit

Permalink
use plurals internally for durations
Browse files Browse the repository at this point in the history
  • Loading branch information
icambron committed Nov 2, 2017
1 parent 0a1ac67 commit 296ecf0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/impl/regexParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ function extractISODuration(match) {
const [, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr, weekStr] = match;

return {
year: parseInt(yearStr),
month: parseInt(monthStr),
week: parseInt(weekStr),
day: parseInt(dayStr),
hour: parseInt(hourStr),
minute: parseInt(minuteStr),
second: parseInt(secondStr)
years: parseInt(yearStr),
months: parseInt(monthStr),
weeks: parseInt(weekStr),
days: parseInt(dayStr),
hours: parseInt(hourStr),
minutes: parseInt(minuteStr),
seconds: parseInt(secondStr)
};
}

Expand Down

0 comments on commit 296ecf0

Please sign in to comment.