Commit graph

129 commits

Author SHA1 Message Date
Justin Tormey
61871d137a Reduce work for checking precense of type in opts 2020-07-27 13:37:15 -05:00
Justin Tormey
1d52bfeb81 Fix formatting 2020-07-27 12:46:26 -05:00
Justin Tormey
b1f6c04eef Add parser support for iodata and safe iodata 2020-07-27 12:42:51 -05:00
lain
62652612c9 Merge branch 'release-0.2.0' into 'master'
Release v0.2.0

See merge request pleroma/elixir-libraries/linkify!22
2020-07-20 12:42:55 +00:00
Egor Kislitsyn
5ab4cff3c8
Bump version 2020-07-20 14:55:09 +04:00
Egor Kislitsyn
c20ca9d206
Add CHANGELOG 2020-07-20 14:54:57 +04:00
Egor Kislitsyn
27b177d724
Update dependencies 2020-07-20 14:54:45 +04:00
lain
a08513aa7e Merge branch 'mentions-fix' into 'master'
Don't parse mentions inside links

Closes pleroma/pleroma#1656

See merge request pleroma/elixir-libraries/linkify!21
2020-07-13 09:23:28 +00:00
Alex Gleason
7c6cff9f8c
Don't parse mentions inside links
Fixes: https://git.pleroma.social/pleroma/pleroma/-/issues/1656
2020-06-30 16:29:32 -05:00
Egor
d3d75daff8 Merge branch 'strip-prefix' into 'master'
Disable `strip_prefix` by default

See merge request pleroma/linkify!20
2019-07-15 09:18:41 +00:00
Egor Kislitsyn
18028fb6b1 Bump version 2019-07-11 20:08:36 +07:00
Egor Kislitsyn
14b8f39160 Disable strip_prefix by default 2019-07-11 20:08:30 +07:00
Egor
b2ba6a3d59 Merge branch 'patch-1' into 'master'
Fix markdown in README.md

See merge request pleroma/linkify!19
2019-06-27 09:58:35 +00:00
Egor
97bbe850d4 Fix markdown in README.md 2019-06-27 09:58:35 +00:00
Egor
74c1986da5 Merge branch 'linkify' into 'master'
Linkify

See merge request pleroma/linkify!18
2019-06-27 09:48:45 +00:00
Egor Kislitsyn
984e8c8341 Bump Elixir version 2019-06-27 16:10:11 +07:00
Egor Kislitsyn
ccc1550a20 Update copyright info 2019-06-27 15:33:18 +07:00
Egor Kislitsyn
a26dcdff36 Update README 2019-06-27 15:32:29 +07:00
Egor Kislitsyn
66f5165655 Do not add class, target and rel attributes by default 2019-06-27 15:32:07 +07:00
Egor Kislitsyn
de6e003b8c Update dependencies 2019-06-24 18:05:01 +07:00
Egor Kislitsyn
2690f2b680 Rename to Linkify 2019-06-24 17:57:31 +07:00
Egor Kislitsyn
093d2344d2 Refactor parser
Refactor parser
2019-06-21 20:09:52 +07:00
Egor Kislitsyn
76cfb574a3 Remove application configuration 2019-06-21 19:39:58 +07:00
Egor Kislitsyn
529014c8f4 Drop phone links support 2019-06-21 19:05:47 +07:00
Egor Kislitsyn
b044a63910 Add doc to valid_tld?/2 2019-06-21 18:27:01 +07:00
Egor Kislitsyn
150d9f222f Remove scheme setting 2019-06-21 18:09:52 +07:00
Egor Kislitsyn
6242cebdf9 Use double quotes in HTML attributes 2019-06-21 17:24:30 +07:00
Egor Kislitsyn
f081e6b553 Remove markdown links support 2019-06-21 17:12:11 +07:00
Egor
95e8188490 Merge branch 'feature/optional-tld-validation' into 'master'
Add an option to disable TLD validation

Closes #8

See merge request pleroma/auto_linker!17
2019-06-18 10:42:32 +00:00
rinpatch
70cbfdc84e Extend email? to utilize validate_tld 2019-06-18 13:25:44 +03:00
rinpatch
1a341fdac3 Move checking for validate_tld to valid_tld? 2019-06-18 13:07:14 +03:00
rinpatch
c19c7afa5b Refactor url?/2 to use opts 2019-06-18 12:57:31 +03:00
rinpatch
c8026cd16c Add an option to disable TLD validation
Added `validate_tld` option, which can be set to false to disable tld
validation and to :no_scheme to disable tld validation when a scheme is
present

Closes #8
2019-06-17 23:06:31 +03:00
Egor
e2385402bc Merge branch 'fix/parens' into 'master'
Improve parsing links inside parentheses and some refactoring

Closes #5

See merge request pleroma/auto_linker!16
2019-06-12 08:35:39 +00:00
Egor Kislitsyn
d9859f8aab Fix credo warnings 2019-06-12 15:33:03 +07:00
Egor Kislitsyn
cef4fe335c Improve parsing links inside parentheses and some refactoring 2019-06-12 15:27:18 +07:00
Egor
c00c4e75b3 Merge branch 'fix/tld-validation' into 'master'
Fix tld validation

Closes #4

See merge request pleroma/auto_linker!15
2019-05-01 07:53:15 +00:00
Egor Kislitsyn
0e6869c9ea Fix tld validation 2019-05-01 14:48:04 +07:00
Egor
90613b4bae Merge branch 'improve-performance' into 'master'
Improve TLD lookup performance

See merge request pleroma/auto_linker!13
2019-04-09 12:02:29 +00:00
Egor Kislitsyn
275fb906fe Merge remote-tracking branch 'pleroma/master' into improve-performance 2019-04-09 19:00:21 +07:00
Egor
fea7b9ea69 Merge branch 'revert-6eb3d585' into 'master'
Revert "Update .gitlab-ci.yml"

See merge request pleroma/auto_linker!14
2019-04-09 11:57:51 +00:00
Egor
a4f9d856af Revert "Update .gitlab-ci.yml"
This reverts commit 6eb3d5855d
2019-04-09 11:55:48 +00:00
Egor Kislitsyn
99c7ffdbe4 use MapSet instead of List 2019-04-09 18:44:05 +07:00
Egor
03e0fb26b2 Merge branch 'patch-1' into 'master'
Update .gitlab-ci.yml

See merge request pleroma/auto_linker!11
2019-04-09 08:15:05 +00:00
Egor
6eb3d5855d Update .gitlab-ci.yml 2019-04-09 08:11:12 +00:00
Egor
a3ec8eb797 Merge branch 'improve-parsing' into 'master'
Improve Parser

See merge request pleroma/auto_linker!10
2019-04-09 08:05:29 +00:00
Egor Kislitsyn
7394548119 test coverage 100%! 🎉 2019-04-09 15:03:39 +07:00
Egor Kislitsyn
32a6e41cd0 cleanup 2019-04-09 15:00:39 +07:00
Egor Kislitsyn
55636e8593 fix links inside nested html 2019-04-09 14:32:30 +07:00
Egor Kislitsyn
a6e8755863 do not link inside <pre> and <code> 2019-04-09 13:45:55 +07:00