A platform for community discussion. Free, open, simple.
DEV: Export pretty text function for plugin use (#13826)
Mark VanLandingham9165f0a0f8b2
diff --git a/app/assets/javascripts/pretty-text/engines/discourse-markdown/mentions.js b/app/assets/javascripts/pretty-text/engines/discourse-markdown/mentions.jsindex 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