From d18b746d2ec2858e88218d24dfdedf27adb28f20 Mon Sep 17 00:00:00 2001 From: Dheeraj Samala Date: Wed, 14 Apr 2021 11:04:39 +0530 Subject: [PATCH] date parsing fix for voice originated text --- src/parsers/EN/ENMonthNameLittleEndianParser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parsers/EN/ENMonthNameLittleEndianParser.js b/src/parsers/EN/ENMonthNameLittleEndianParser.js index 3ab17f2f..59214038 100644 --- a/src/parsers/EN/ENMonthNameLittleEndianParser.js +++ b/src/parsers/EN/ENMonthNameLittleEndianParser.js @@ -18,7 +18,7 @@ var PATTERN = new RegExp('(\\W|^)' + '(([0-9]{1,2})(?:st|nd|rd|th)?|' + util.ORDINAL_WORDS_PATTERN + ')' + ')?' + '(?:-|\/|\\s*(?:of)?\\s*)' + - '(Jan(?:uary|\\.)?|Feb(?:ruary|\\.)?|Mar(?:ch|\\.)?|Apr(?:il|\\.)?|May|Jun(?:e|\\.)?|Jul(?:y|\\.)?|Aug(?:ust|\\.)?|Sep(?:tember|\\.)?|Oct(?:ober|\\.)?|Nov(?:ember|\\.)?|Dec(?:ember|\\.)?)' + + '(Jan(?:uary)?(:?\\.)?|Feb(?:ruary)?(:?\\.)?|Mar(?:ch)?(:?\\.)?|Apr(?:il)?(:?\\.)?|May|Jun(?:e)?(:?\\.)?|Jul(?:y)?(:?\\.)?|Aug(?:ust)?(:?\\.)?|Sep(?:tember)?(:?\\.)?|Oct(?:ober)?(:?\\.)?|Nov(?:ember)?(:?\\.)?|Dec(?:ember)?(:?\\.)?)' + '(?:' + '(?:-|\/|,?\\s*)' + '([0-9]{1,4}(?![^\\s]\\d))' +