From 9943924664ff25ee126ec8ebe475c6c6f2ef06d3 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Mon, 19 Aug 2024 14:04:58 +0100 Subject: [PATCH] fix(plugins/dates): stop tagging of all trailing conjunctions --- plugins/dates/src/compute/matches.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dates/src/compute/matches.js b/plugins/dates/src/compute/matches.js index 350bd685a..d426820bd 100644 --- a/plugins/dates/src/compute/matches.js +++ b/plugins/dates/src/compute/matches.js @@ -43,7 +43,7 @@ let matches = [ //for 4 months { match: 'for #Value #Duration', tag: 'Date', reason: 'for-x-duration' }, //two days before - { match: '#Value #Duration #Conjunction', tag: 'Date', reason: 'val-duration-conjunction' }, + { match: '#Value #Duration (before|ago|hence|back)', tag: 'Date', reason: 'val-duration-past' }, //for four days { match: `${preps}? #Value #Duration`, tag: 'Date', reason: 'value-duration' }, // 6-8 months