mirror of
https://github.com/discourse/discourse.git
synced 2025-09-08 12:06:51 +08:00
FIX: Don't show emoji selector when ending a line with a colon
This commit is contained in:
parent
299339a373
commit
74858fd450
2 changed files with 2 additions and 3 deletions
|
@ -338,8 +338,7 @@ export default Ember.Component.extend({
|
|||
},
|
||||
|
||||
onKeyUp(text, cp) {
|
||||
const subtext = text.substring(0, cp);
|
||||
return subtext.match(/(:(?!:).?[\w-]*:?(?!:)(?:t\d?)?:?) ?$/gm);
|
||||
return text.substring(0, cp).match(/(:(?!:).?[\w-]*:?(?!:)(?:t\d?)?:?) ?$/g);
|
||||
},
|
||||
|
||||
transformComplete(v) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue