'use strict';
let months = require('../../../data/dates').months.concat(['march', 'may']); //(march and may are ambiguous grammatically)
const month = '(' + months.join('|') + ')';
const day = '([0-9]{1,2})';
const year = '\'?([12][0-9]{3})';
const rules = [
{
reg: `${month} ${day} ${year}`, //'March 1st 1987'
order: ['month', 'day', 'year']
},
{
reg: `${day} of ${month} ${year}`, //'3rd of March 1969',
order: ['day', 'month', 'year']
},