Fixed linting errors and warnings

This commit is contained in:
Jori Lallo
2017-05-10 00:02:11 -07:00
parent eb8d2631fb
commit a98199599a
15 changed files with 42 additions and 88 deletions

View File

@@ -1,9 +1,8 @@
import emojiMapping from './emoji-mapping.json';
const EMOJI_REGEX = /:([A-Za-z0-9_\-\+]+?):/gm;
const EMOJI_REGEX = /:([A-Za-z0-9_\-+]+?):/gm;
const emojify = (text = '') => {
const emojis = text.match(EMOJI_REGEX) || [];
let emojifiedText = text;
emojifiedText = text.replace(EMOJI_REGEX, (match, p1, offset, string) => {