Commit graph

104 commits

Author SHA1 Message Date
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
Egor Kislitsyn
02d7cb1eba fix test 2019-04-09 13:20:48 +07:00
Egor Kislitsyn
e8b6ec89c9 Merge remote-tracking branch 'pleroma/master' into improve-parsing 2019-04-09 13:13:14 +07:00
Egor Kislitsyn
4949c02cb6 fix parsing inside HTML tags 2019-04-09 13:08:13 +07:00
Egor
479dd343f4 Merge branch 'improve-parsing' into 'master'
Improve detection of URLs and Asian scripts

Closes #2 and #3

See merge request pleroma/auto_linker!9
2019-04-03 12:02:31 +00:00
Egor
12f8ca5319 Improve detection of URLs and Asian scripts 2019-04-03 12:02:31 +00:00
Egor Kislitsyn
50882b427a support Telugu and probably other Asian scripts (#3) 2019-04-03 18:53:35 +07:00
Egor Kislitsyn
e862ee9d21 improve parsing (#2) 2019-04-03 18:05:11 +07:00
Egor
5e2661980a Merge branch 'improve-ci' into 'master'
Improve CI

See merge request pleroma/auto_linker!8
2019-04-03 08:00:52 +00:00
Egor
37c5c3bdd1 Improve CI 2019-04-03 08:00:52 +00:00
Egor Kislitsyn
6dd627bfdf add credo to CI 2019-04-03 14:57:36 +07:00
Egor Kislitsyn
df6f5dcab6 fix credo warnings 2019-04-03 14:57:06 +07:00
Egor Kislitsyn
ca4afd14ff add test coverage to CI 2019-04-03 14:55:30 +07:00
Egor Kislitsyn
f8a2dc97ff Merge remote-tracking branch 'pleroma/master' 2019-04-03 14:34:57 +07:00
Egor
db3b14d0f7 Merge branch 'features/builder_tests' into 'master'
Add tests on AutoLinker.Builder public functions

See merge request pleroma/auto_linker!7
2019-04-02 11:17:57 +00:00
Haelwenn (lanodan) Monnier
4dae1eadd5
AutoLinker.BuilderTest: Add forgotten assert on format_mention/3 2019-03-01 22:53:53 +01:00
Haelwenn (lanodan) Monnier
bdd98ee731
AutoLinker.BuilderTest: Do not pass overridden href to create_link/2 2019-02-27 18:33:06 +01:00
Haelwenn (lanodan) Monnier
204ad610e3
AutoLinker.BuilderTest: Match (strange) behaviour 2019-02-27 18:25:14 +01:00
Haelwenn (lanodan) Monnier
a4184277d0
AutoLinker.BuilderTest: Put tests on all the public functions 2019-02-27 18:14:31 +01:00
Egor
94193ca5f9 Merge branch 'fix/link-text' into 'master'
Fix link text

See merge request pleroma/auto_linker!6
2019-02-23 13:31:09 +00:00
Egor
c77b2c0ead Fix link text 2019-02-23 13:31:09 +00:00
Egor Kislitsyn
cb748300fe Merge branch 'fix/link-text' 2019-02-23 20:28:09 +07:00
Egor Kislitsyn
dc644b1fcc Merge remote-tracking branch 'pleroma/master' 2019-02-23 20:27:46 +07:00
Egor Kislitsyn
82ba30c658 cleanup 2019-02-23 20:19:46 +07:00
Egor Kislitsyn
cfc6355bbe fix link text 2019-02-23 20:09:43 +07:00
Egor
8e9de09c70 Merge branch 'master' into 'master'
Improve hashtags and `rel` attribute

Closes #1

See merge request pleroma/auto_linker!5
2019-02-23 12:51:38 +00:00