2567e2c107
add bare whitespace test
2021-12-30 19:46:42 +00:00
b6f644545f
Bump version
2021-12-30 19:42:50 +00:00
94aeffd227
Fix hashtag parsing at the end of lines
2021-12-30 19:41:30 +00:00
lain
29d259cb0a
Merge branch '0.5.1' into 'master'
...
Update version
See merge request pleroma/elixir-libraries/linkify!44
2021-07-08 15:19:11 +00:00
Lain Soykaf
6754e8e61b
Update version
2021-07-08 17:13:46 +02:00
b830b8bf1a
Merge branch 'fix/parsing_error' into 'master'
...
Fix parsing error on URLs ending in ) with no path separator. e.g., http://example.com )
Closes #29
See merge request pleroma/elixir-libraries/linkify!43
2021-07-07 21:57:50 +00:00
98947c5d53
Fix parsing error on URLs ending in ) with no path separator. e.g., http://example.com )
2021-07-07 16:52:16 -05:00
lain
ec7475a7e2
Merge branch 'release/0.5.0' into 'master'
...
Release/0.5.0
See merge request pleroma/elixir-libraries/linkify!42
2021-03-02 15:02:24 +00:00
lain
97aed818e2
Merge branch 'master' of git.pleroma.social:pleroma/elixir-libraries/linkify
2021-03-02 15:57:05 +01:00
lain
924fc681b4
Prepare 0.5.0 release.
2021-03-02 15:56:29 +01:00
lain
5758b8d50c
Merge branch 'fix-mentions' into 'master'
...
Fix mentions in compact html
See merge request pleroma/elixir-libraries/linkify!37
2021-03-02 14:54:32 +00:00
lain
09e56b48d6
Merge branch 'fix/ip-urls-require-scheme' into 'master'
...
Require scheme to link IPv4 addresses
See merge request pleroma/elixir-libraries/linkify!40
2021-03-02 14:05:02 +00:00
lain
ce7a5a68c8
Merge branch 'fix/parens-stripping' into 'master'
...
Enhance parens stripping logic
See merge request pleroma/elixir-libraries/linkify!38
2021-03-02 14:04:23 +00:00
lain
c1aea9357d
Merge branch 'mentions-and-apostrophes' into 'master'
...
Mentions and apostrophes
See merge request pleroma/elixir-libraries/linkify!41
2021-03-02 12:57:58 +00:00
dac0a32214
Document improvements on linking mentions with apostrophes
2021-02-13 13:08:48 -06:00
de243909aa
Try to strip common English apostrope contractions/abbreviations on words
2021-02-13 13:07:19 -06:00
3999a61535
Correct test for apostrophes on mentions. It wasn't validating anything.
2021-02-13 12:47:44 -06:00
1bc845f9e4
Small optimization
2021-01-28 12:45:07 -06:00
fb88baabac
Apply 1 suggestion(s) to 1 file(s)
2021-01-28 11:25:29 -06:00
5191250de4
Document improved URL detection in parentheticals, target 0.5.0 release because it's a fairly big change.
2021-01-28 09:53:16 -06:00
c878e0da93
Merge branch 'feat/bump-tlds' into 'master'
...
Add alias to bump TLDs list easily
See merge request pleroma/elixir-libraries/linkify!39
2021-01-28 15:45:30 +00:00
e004539a54
Auto linking of IP addresses requires a scheme has been provided
2021-01-27 17:42:09 -06:00
2b338e9ace
Add alias to bump TLDs list easily
2021-01-27 17:14:18 -06:00
75f68977af
Add own trim functions that only strips one character
...
This makes it possible to support URLs that end in ) but are in another ()
2021-01-27 15:49:42 -06:00
14e1f64a09
Missing operation for only trimming leading
2021-01-27 14:58:39 -06:00
a7e86d3381
Credo
2021-01-27 14:42:05 -06:00
aec97fac71
Split checks into functions returning atoms to make the decisions
2021-01-27 14:20:44 -06:00
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
Alex Gleason
e5c035a0ce
Fix mentions in compact html
2020-12-24 21:18:25 -06:00
lain
bd7a759911
Merge branch 'release/0.4.1' into 'master'
...
Release/0.4.1
See merge request pleroma/elixir-libraries/linkify!36
2020-12-22 13:23:18 +00:00
Lain Soykaf
603cf8c720
Mix: Update version
2020-12-22 14:18:02 +01:00
Lain Soykaf
e0fd2e7620
LinkifyTest: Add test for short IPv4 bug.
2020-12-22 14:17:13 +01:00
8091bdbc7b
Document fix, prepare for release
2020-12-21 14:02:04 -06:00
713b986fa5
Only support IPv4 for the moment
2020-12-21 11:32:05 -06:00
26fec6cff1
Fix invalid IPv4 linking; optimize
...
thx @href !
2020-12-19 13:20:11 -06:00
lain
33558484a6
Merge branch 'release/0.4.0' into 'master'
...
Release: Change changelog and mix version
See merge request pleroma/elixir-libraries/linkify!34
2020-11-27 11:17:19 +00:00
Lain Soykaf
506c23f8eb
Release: Change changelog and mix version
2020-11-24 17:50:12 +01:00
Haelwenn
a32f582aa8
Merge branch 'chores/bump-tlds' into 'master'
...
priv/tlds.txt: Bump to 2020111900
See merge request pleroma/elixir-libraries/linkify!32
2020-11-19 22:22:52 +00:00
Haelwenn (lanodan) Monnier
f923aa0ac1
priv/tlds.txt: Bump to 2020111900
...
Version 2020111900, Last Updated Thu Nov 19 07:07:01 2020 UTC
curl https://data.iana.org/TLD/tlds-alpha-by-domain.txt | grep -v '^#' | tr '[:upper:]' '[:lower:]' > priv/tlds.txt
2020-11-19 23:19:13 +01:00
Haelwenn
9b86e5e5e4
Merge branch 'features/hostname_validation' into 'master'
...
Add .onion in the default TLDs, Validate IPv6, IDN compatibility in email and mentions
See merge request pleroma/elixir-libraries/linkify!29
2020-11-19 20:42:20 +00:00
Haelwenn
62b385674d
Apply 1 suggestion(s) to 1 file(s)
2020-11-19 20:35:56 +00:00
Mark Felder
9925f4514e
Add .onion domain tests
2020-11-19 19:49:21 +00:00
Mark Felder
5573fe6d97
Test IDN and punycode domains in mentions
2020-11-19 19:30:20 +00:00
rinpatch
df559cd2ae
Merge branch 'handle-href' into 'master'
...
Add handle_href option for href pre-processing
Closes #19
See merge request pleroma/elixir-libraries/linkify!31
2020-11-19 19:25:18 +00:00
Mark Felder
3ce2c34709
Fix linking URLs/domains with trailing punctuation
2020-11-19 18:55:17 +00:00
Mark Felder
17126aa662
Move tests under correct group, add test for URLs with IPv4 for domain
2020-11-19 18:29:41 +00:00
Mark Felder
31d41920ed
Fix test group name
2020-11-19 18:25:54 +00:00
Mark Felder
c14ac019af
Add IDN and punycode domain test
2020-11-19 18:13:55 +00:00
Haelwenn (lanodan) Monnier
649fc9125d
parser: Validate IPv6, IDN compatibility in email and mentions
2020-11-19 17:42:34 +00:00
Haelwenn (lanodan) Monnier
26f5310379
parser: Add onion as an extra TLD
2020-11-19 17:42:34 +00:00