From 9165f0a0f8b2a78687a4febe94748a78db8afffe Mon Sep 17 00:00:00 2001 From: Mark VanLandingham Date: Thu, 22 Jul 2021 14:06:46 -0500 Subject: [PATCH] DEV: Export pretty text function for plugin use (#13826) --- .../pretty-text/engines/discourse-markdown/mentions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/pretty-text/engines/discourse-markdown/mentions.js b/app/assets/javascripts/pretty-text/engines/discourse-markdown/mentions.js index a9a7015bc5f..c71563bab71 100644 --- a/app/assets/javascripts/pretty-text/engines/discourse-markdown/mentions.js +++ b/app/assets/javascripts/pretty-text/engines/discourse-markdown/mentions.js @@ -33,7 +33,7 @@ export function setup(helper) { }); } -function mentionRegex(unicodeUsernames) { +export function mentionRegex(unicodeUsernames) { if (unicodeUsernames) { try { // Create the regex from a string, because Babel doesn't understand