Replace space by underscore in emoji shortcodes

This commit is contained in:
Ajay Bura 2022-08-11 16:24:22 +05:30
parent 1da3d252e8
commit 59fd34a4b4

View file

@ -118,7 +118,7 @@ function useImagePackHandles(pack, sendPackContent) {
const getNewKey = (key) => {
if (typeof key !== 'string') return undefined;
let newKey = key?.replace(/\s/g, '-');
let newKey = key?.replace(/\s/g, '_');
if (pack.getImages().get(newKey)) {
newKey = suffixRename(
newKey,