neutral-face-emoji-tools icon indicating copy to clipboard operation
neutral-face-emoji-tools copied to clipboard

Fix space characters in emoji name

Open CJGlitter opened this issue 7 months ago • 1 comments

Problem

Space characters in the filename are passed to the Slack form in the name field causing an error—Slack emoji names cannot contain whitespace.

Solution

Used replaceAll to swap spaces for dashes. I chose dashes as opposed to underscores because slack emoji indexing works nicer with dashes.

Concerns

No potential issues arising from this change anticipated.

Future changes

  • Currently working on adding some logic to append an incrementing -# to emoji-names if name_taken error occurs.

CJGlitter avatar Jul 09 '24 00:07 CJGlitter