Replace space by underscore in emoji shortcodes
authorAjay Bura <32841439+ajbura@users.noreply.github.com>
Thu, 11 Aug 2022 10:54:22 +0000 (16:24 +0530)
committerAjay Bura <32841439+ajbura@users.noreply.github.com>
Thu, 11 Aug 2022 10:54:22 +0000 (16:24 +0530)
src/app/molecules/image-pack/ImagePack.jsx

index 725291d1c1075be746992cae7a5afe0585ed908e..f88886c1b144f43e16f07515a7ca5d3a0a049802 100644 (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,