linkify/test
Mark Felder 26fa3bffeb Try to make intelligent decisions when deciding if parens should be stripped before linking
This logic is torture and needs some rework.

Rules:

- Always strip leading (, as it can't be part of a URL
- Short circuit to only strip leading if no trailing
- If valid email address when trailing ) stripped, we can strip trailing )
- If not even a valid URL without trailing ), short circuit to only strip leading
- If query parameters detected, strip trailing. It should have been encoded as %29.
- If there isn't a / the trailing ) can't be part of the URL, strip trailing.
- If there isn't at least one ( in the URI.path, only strip leading. Assume ) is not part of the URL.
- If we have an equal count of ( and ) chars with the leading ( already stripped, only strip leading
2021-01-26 18:30:35 -06:00
..
builder_test.exs Do not add class, target and rel attributes by default 2019-06-27 15:32:07 +07:00
linkify_test.exs Try to make intelligent decisions when deciding if parens should be stripped before linking 2021-01-26 18:30:35 -06:00
parser_test.exs parser: Validate IPv6, IDN compatibility in email and mentions 2020-11-19 17:42:34 +00:00
test_helper.exs create project and some linker impl 2017-03-29 10:11:22 -04:00