Merge pull request #1031 from SISheogorath/fix/emojiPlugin

Fix emoji regex
This commit is contained in:
Christoph (Sheogorath) Kern 2018-10-31 00:30:23 +01:00 committed by GitHub
commit d79301a00d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1147,7 +1147,7 @@ const pdfPlugin = new Plugin(
const emojijsPlugin = new Plugin( const emojijsPlugin = new Plugin(
// regexp to match emoji shortcodes :something: // regexp to match emoji shortcodes :something:
/:([\d\D]*):/, /:([^\s:]+):/,
(match, utils) => { (match, utils) => {
const emoji = match[1] ? match[1].toLowerCase() : undefined const emoji = match[1] ? match[1].toLowerCase() : undefined