Replace space by underscore in emoji shortcodes
This commit is contained in:
1 parent
92de05f1d7
commit
803c927c10
1 file changed
+1
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user