Fix small parser bugs
All threads resolved!
All threads resolved!
Resolves #10 (closed), #13 (closed), #15 (closed), #16 (closed), #21 (closed), #23 (closed)
Edited by Sergey Suprunenko
Merge request reports
Activity
@lambadalambda @minibikini please review
added 1 commit
- afddc297 - Handle punctuation marks and angle bracket in the end of a link
Weird, 4 claused of
do_parse
are uncovered by tests now while all tests are green. I wonder if we really need them:defp do_parse({"<" <> text, user_acc}, opts, {"", acc, {:html, level}}, type) do defp do_parse({"</" <> text, user_acc}, opts, {buffer, acc, {:html, level}}, type) do defp do_parse({">" <> text, user_acc}, opts, {buffer, acc, {:close, 1}}, type) defp do_parse({">" <> text, user_acc}, opts, {buffer, acc, {:close, level}}, type)
added 9 commits
-
afddc297...4764e181 - 5 commits from branch
pleroma/elixir-libraries:master
- 7dc90dbe - Do not parse html links inside html tags
- 2000bab5 - Handle punctuation marks and angle bracket in the end of a link
- 34fee7c7 - Remove unused clauses
- 47634fd8 - Handle punctuation marks and new lines
Toggle commit list-
afddc297...4764e181 - 5 commits from branch
mentioned in issue pleroma/pleroma#2026 (closed)
- Resolved by Sergey Suprunenko
added 1 commit
- 34e3f45e - Linkify.Parser.restore_stripped_symbols/3 must always return iodata
added 7 commits
-
34e3f45e...86afaf49 - 2 commits from branch
pleroma/elixir-libraries:master
- e5a8cf2b - Do not parse html links inside html tags
- 74afaca7 - Handle punctuation marks and angle bracket in the end of a link
- 8d88833d - Remove unused clauses
- 7005cda9 - Handle punctuation marks and new lines
- c4b4cb95 - Linkify.Parser.restore_stripped_symbols/3 must always return iodata
Toggle commit list-
34e3f45e...86afaf49 - 2 commits from branch
mentioned in commit 55818409
Please register or sign in to reply