Replace space by underscore in emoji shortcodes

This commit is contained in:
Ajay Bura committed 2022-08-11 16:24:22 +05:30
1 parent 1da3d252e8
commit 59fd34a4b4
1 file changed
+1 -1
+1 -1
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,