diff --git a/lib/date-cases/parse-cases/common-parse-cases.js b/lib/date-cases/parse-cases/common-parse-cases.js index 3417bea..7e1bb97 100644 --- a/lib/date-cases/parse-cases/common-parse-cases.js +++ b/lib/date-cases/parse-cases/common-parse-cases.js @@ -429,6 +429,18 @@ const parseCases = [ parsedTimes.push(new ParsedTime(DateTypes.target, TimeTypes.months, month, indexes, context, prevalence, { validMode: ValidModes.certified })); } return parsedTimes; + }), + //Searchs for 'Annualy' case + new ParseCase(50, function (parsedTimes, contextsData, prevalence) { + let matches = [...this.regchars.matchAll(/J/g)]; + for (const match of matches) { + + let indexes = markIndexes.call(this, match.index, 1, false, false); + let context = processContexts(contextsData, indexes); + + parsedTimes.push(new ParsedTime(DateTypes.period, TimeTypes.years, 1, indexes, context, prevalence, { validMode: ValidModes.certified })); + } + return parsedTimes; }) ];