Changes
2 changed files (+7/-1)
-
-
@@ -123,7 +123,7 @@ })) const parseEmoji = regexp( /^:([^:<`*#@!\s]+):(:(skin-tone-.+?):)?/, /^:([^:<`*#@!\s()$%]+):(:(skin-tone-.+?):)?/, (match, text, position) => { const [matchedText, name, _, variation] = match
-
-
-
@@ -176,6 +176,12 @@ expect(parse('foo:bar:baz')).toEqual(root([text('foo'), emoji('bar'), text('baz')]) ) }) it('Should not parse invalid emoji names', () => { expect(parse('(11/3 - 4:30pm): ok')).toEqual( root([text('(11/3 - 4:30pm): ok')]) ) }) }) describe('Quote parser', () => {
-