Changes
2 changed files (+8/-1)
-
-
@@ -136,7 +136,7 @@ }) const parseLink = regexp( /^<([^\s*~_<>]+?)(\|([^<>]+?))?>/, /^<([^\s<>]+?)(\|([^<>]+?))?>/, (match, text, position, parseText) => { const [matchedText, link, _, label] = match const nextPosition = position + matchedText.length
-
-
-
@@ -116,6 +116,13 @@ parse('Visit <http://foo.bar> or email to <mailto:foo@bar>')).toEqual(expected) }) // https://github.com/pocka/slack-message-parser/issues/1 it('Should parse url contains underscore', () => { expect(parse('<http://foo/bar_baz>')).toEqual( root([url('http://foo/bar_baz')]) ) }) it('Should not allow nested link', () => { expect(parse('<http://foo|<http://bar>>')).toEqual( root([text('<http://foo|'), url('http://bar'), text('>')])
-