Commit Graph

223 Commits

Author SHA1 Message Date
Lain Soykaf b5d4f9616e
Mix.exs: Update version 2023-03-28 22:09:16 +02:00
Sam Therapy 7a207ac59d
add openNIC
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2023-01-20 17:01:35 +01:00
Sam Therapy f66e3935fa
Add new tlds 2023-01-10 16:59:50 +01:00
mint 76b0923033
Fix tests for added domains
This fixes tests from previous commit by replacing i2p/loki with random
but still valid Handshake domains (porkbun.com/handshake)
2023-01-10 16:23:16 +01:00
mint c77d40de20
Adjustment for parsing non-ICANN domain mentions 2023-01-10 16:23:16 +01:00
Haelwenn 1e612ac3a3 Merge branch 'tusooa/doubledotlink' into 'master'
Allow double dots in links

See merge request pleroma/elixir-libraries/linkify!52
2022-12-28 22:36:24 +00:00
tusooa 0e62e64339
Allow double dots in links 2022-12-28 12:15:35 -05:00
Haelwenn d5ae88725a Merge branch 'tusooa/zwnj=nobrk' into 'master'
Do not break hashtag at zwnj

See merge request pleroma/elixir-libraries/linkify!51
2022-12-26 16:03:02 +00:00
tusooa 3599ccf759
Do not break hashtag at zwnj 2022-12-26 10:15:43 -05:00
Haelwenn 123dbb0fd6 Merge branch '2022-03-deps' into 'master'
Update dependencies

See merge request pleroma/elixir-libraries/linkify!47
2022-07-10 16:53:46 +00:00
Haelwenn (lanodan) Monnier 281d66bf46 Update dependencies 2022-07-10 18:23:07 +02:00
Haelwenn 6366509323 Merge branch 'reuse' into 'master'
Make repository REUSE compliant

See merge request pleroma/elixir-libraries/linkify!48
2022-07-10 13:48:23 +00:00
Haelwenn (lanodan) Monnier 8505286703 Make repository REUSE compliant 2022-07-10 08:47:13 +02:00
Haelwenn (lanodan) Monnier 20e4f75874 builder.ex: Use Enum.map_join instead of Enum.map+Enum.join 2022-03-07 15:04:31 +01:00
lain fa46ecf29f Merge branch 'release-0.5.2' into 'master'
Release v0.5.2

See merge request pleroma/elixir-libraries/linkify!46
2022-01-12 16:14:20 +00:00
Alex Gleason e33c8c8288
Release v0.5.2 2022-01-09 11:57:47 -06:00
Alex Gleason ad438ed500 Merge branch 'bugfix/line-ending-buffer' into 'master'
Bugfix: Hashtags at the end of lines

See merge request pleroma/elixir-libraries/linkify!45
2021-12-30 23:18:42 +00:00
FloatingGhost 2567e2c107 add bare whitespace test 2021-12-30 19:46:42 +00:00
FloatingGhost b6f644545f Bump version 2021-12-30 19:42:50 +00:00
FloatingGhost 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
feld 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
Mark Felder 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
Mark Felder dac0a32214 Document improvements on linking mentions with apostrophes 2021-02-13 13:08:48 -06:00
Mark Felder de243909aa Try to strip common English apostrope contractions/abbreviations on words 2021-02-13 13:07:19 -06:00
Mark Felder 3999a61535 Correct test for apostrophes on mentions. It wasn't validating anything. 2021-02-13 12:47:44 -06:00
Mark Felder 1bc845f9e4 Small optimization 2021-01-28 12:45:07 -06:00
feld fb88baabac Apply 1 suggestion(s) to 1 file(s) 2021-01-28 11:25:29 -06:00
Mark Felder 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
feld 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
Mark Felder e004539a54 Auto linking of IP addresses requires a scheme has been provided 2021-01-27 17:42:09 -06:00
Mark Felder 2b338e9ace Add alias to bump TLDs list easily 2021-01-27 17:14:18 -06:00
Mark Felder 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
Mark Felder 14e1f64a09 Missing operation for only trimming leading 2021-01-27 14:58:39 -06:00
Mark Felder a7e86d3381 Credo 2021-01-27 14:42:05 -06:00
Mark Felder aec97fac71 Split checks into functions returning atoms to make the decisions 2021-01-27 14:20:44 -06:00
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
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
Mark Felder 8091bdbc7b Document fix, prepare for release 2020-12-21 14:02:04 -06:00