Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
text: match[0],
index: match.index,
start: {
hour: dateMoment.hour(),
minute: dateMoment.minute(),
second: dateMoment.second(),
day: dateMoment.date(),
month: dateMoment.month() + 1,
year: dateMoment.year(),
}
});
};
const parser = chrono.en_GB;
parser.parsers.push(hrsMinsParser);
parser.refiners.push(rollOverYearRefiner);
parser.refiners.push(rollOverDayRefiner);
parser.refiners.push(combineDateAndTime);
module.exports = parser;