DEV: Export pretty text function for plugin use (#13826)

DEV: Export pretty text function for plugin use (#13826)

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 a9a7015..c71563b 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

GitHub sha: 9165f0a0f8b2a78687a4febe94748a78db8afffe

This commit appears in #13826 which was approved by eviltrout. It was merged by markvanlan.