From c08b2ddecfaed0f0ab3e3b30743b55d5f5230fb2 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Mon, 18 Feb 2019 22:39:45 +0100 Subject: [PATCH] FIX: stricter matching on local-dates (#7023) --- .../lib/discourse-markdown/discourse-local-dates.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/discourse-local-dates/assets/javascripts/lib/discourse-markdown/discourse-local-dates.js.es6 b/plugins/discourse-local-dates/assets/javascripts/lib/discourse-markdown/discourse-local-dates.js.es6 index eeb68598980..7105464ba81 100644 --- a/plugins/discourse-local-dates/assets/javascripts/lib/discourse-markdown/discourse-local-dates.js.es6 +++ b/plugins/discourse-local-dates/assets/javascripts/lib/discourse-markdown/discourse-local-dates.js.es6 @@ -143,7 +143,7 @@ export function setup(helper) { helper.registerPlugin(md => { const rule = { - matcher: /\[date(.+?)\]/, + matcher: /\[date(=.+?)\]/, onMatch: addLocalDate };