parse(text, error) {
    const monthAndYear = text.split(this.delimiter);
    let month = monthAndYear[0];
    let year = monthAndYear[1];
    if (month && month.match(/^(0?[1-9]|1\d)$/) && year && year.match(/^\d\d?$/)) {
      month = Number(month);
      year = interpretTwoDigitYear(Number(year));
      return { month: month, year: year };
    } else {
      if (typeof error === 'function') {
        error('expiry-date-formatter.invalid-date');
      }
      return null;
    }
  }
Parses the given text

@param {string} text
@param {Function(string)} error
@returns {?Object} { month: month, year: year }