Skip to content

Commit

Permalink
chore: fallback to minutes if no unit is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
colomolo committed Jun 10, 2023
1 parent 5c0f87b commit 454fe6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parse_input.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ function run(argv) {
const presetDuration2 = $.getenv('preset_duration_2');

const MAX_DELAY_IN_SECONDS = 60 * 60 * 2; // two hours
const ACCEPTED_UNITS_SECONDS = ['', 's', 'sec', 'secs', 'second', 'seconds'];
const ACCEPTED_UNITS_MINUTES = ['m', 'min', 'mins', 'minute', 'minutes'];
const ACCEPTED_UNITS_SECONDS = ['s', 'sec', 'secs', 'second', 'seconds'];
const ACCEPTED_UNITS_MINUTES = ['', 'm', 'min', 'mins', 'minute', 'minutes'];
const ACCEPTED_UNITS_HOURS = ['h', 'hr', 'hrs', 'hour', 'hours'];

const inputToTimeMap = (input) => {
Expand Down

0 comments on commit 454fe6e

Please sign in to comment.