mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 15:41:51 +08:00
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 👍t` would not trigger an autocomplete to pick skin tone.
This commit is contained in:
parent
8ef782bdbd
commit
a9c703c230
|
@ -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)
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user