FIX: emoji autocomplete not triggering correctly

FIX: emoji autocomplete not triggering correctly

08044b4f regressed emoji auto complete logic since we (I) forgot to add the space into the not capturing group at the beginning.

This meant that

hello :+1:t would not trigger an autocomplete to pick skin tone.

diff --git a/app/assets/javascripts/discourse/app/components/d-editor.js b/app/assets/javascripts/discourse/app/components/d-editor.js
index 4a45c19..93f2a3e 100644
--- a/app/assets/javascripts/discourse/app/components/d-editor.js
+++ b/app/assets/javascripts/discourse/app/components/d-editor.js
@@ -440,7 +440,7 @@ export default Component.extend({
           return false;
         }
 
-        const matches = /(?:^|[>.,\/#!$%^&*;:{}=\-_`~()])(:(?!:).?[\w-]*:?(?!:)(?:t\d?)?:?) ?$/gi.exec(
+        const matches = /(?:^|[\s.\?,@\/#!%&*;:\[\]{}=\-_()])(:(?!:).?[\w-]*:?(?!:)(?:t\d?)?:?) ?$/gi.exec(
           text.substring(0, cp)
         );
 

GitHub sha: a9c703c2

This commit has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/the-emoji-suggestions-have-stopped-working/156631/4