Skip to content

Comments

Fix thumbs up emoji shortname#14581

Merged
sampaiodiego merged 1 commit intodevelopfrom
fix-thumbup-emoji
May 22, 2019
Merged

Fix thumbs up emoji shortname#14581
sampaiodiego merged 1 commit intodevelopfrom
fix-thumbup-emoji

Conversation

@sampaiodiego
Copy link
Member

@sampaiodiego sampaiodiego commented May 21, 2019

The shortname for thumbs up emoji :+1: was not working because its + sign is escaped on the shortnames string, where it tries to find using indexOf..

for the fix I needed to copy the whole function and add the same escape method (replace(/[+]/g, '\\$&')) pior the indexOf

@sampaiodiego sampaiodiego added this to the 1.1.0 milestone May 21, 2019
@sampaiodiego sampaiodiego requested review from ggazzo and tassoevan May 21, 2019 21:59
@sampaiodiego sampaiodiego merged commit 5e60a8a into develop May 22, 2019
@sampaiodiego sampaiodiego deleted the fix-thumbup-emoji branch May 22, 2019 11:42
wreiske added a commit to wreiske/Rocket.Chat that referenced this pull request May 27, 2019
… into new-reports-ui

* 'new-reports-ui' of https://github.com/wreiske/Rocket.Chat: (97 commits)
  LingoHub Update 🚀 (RocketChat#14643)
  [FIX] Role name spacing on Permissions page (RocketChat#14625)
  [FIX] Avatar images on old Livechat client (RocketChat#14590)
  [FIX] Inject code at the end of <head> tag (RocketChat#14623)
  [FIX] Mailer breaking if user doesn't have an email address (RocketChat#14614)
  Ci improvements (RocketChat#14600)
  [FIX] E2E messages not decrypting in message threads (RocketChat#14580)
  Fix: emoji render performance for alias (RocketChat#14593)
  [FIX] Send replyTo for livechat offline messages (RocketChat#14568)
  Federation i18n message changes (RocketChat#14595)
  [REGRESSION] Fix Slack bridge channel owner on channel creation (RocketChat#14565)
  Fix thumbs up emoji shortname (RocketChat#14581)
  Fix broken logo url in app.json (RocketChat#14572)
  Add digitalocean button to readme (RocketChat#14583)
  Fix: Add emoji shortnames to emoji's list (RocketChat#14576)
  [IMPROVE] Message rendering time (RocketChat#14252)
  [IMPROVE] Change user presence events to Meteor Streams (RocketChat#14488)
  Removed unnecessary DDP unblocks (RocketChat#13641)
  [FIX] Downloading files when running in sub directory (RocketChat#14485)
  [FIX] Broken layout when sidebar is open on IE/Edge (RocketChat#14567)
  ...
@sampaiodiego sampaiodiego mentioned this pull request May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants