Replace space by underscore in emoji shortcodes
This commit is contained in:
parent
1da3d252e8
commit
59fd34a4b4
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ function useImagePackHandles(pack, sendPackContent) {
|
||||||
|
|
||||||
const getNewKey = (key) => {
|
const getNewKey = (key) => {
|
||||||
if (typeof key !== 'string') return undefined;
|
if (typeof key !== 'string') return undefined;
|
||||||
let newKey = key?.replace(/\s/g, '-');
|
let newKey = key?.replace(/\s/g, '_');
|
||||||
if (pack.getImages().get(newKey)) {
|
if (pack.getImages().get(newKey)) {
|
||||||
newKey = suffixRename(
|
newKey = suffixRename(
|
||||||
newKey,
|
newKey,
|
||||||
|
|
Loading…
Reference in a new issue