Commit Graph

92 Commits

Author SHA1 Message Date
levlam
ea450564b0 Add BlockQuote parsing in MarkdownV2. 2023-10-30 18:18:13 +03:00
levlam
bdbee0765b Fix warnings. 2023-10-30 16:54:39 +03:00
levlam
f10bcc49cb Support BlockQuote entities in textParseModeHTML. 2023-10-29 22:29:39 +03:00
levlam
77cf5262b4 Add check for entities being sorted. 2023-10-19 13:47:41 +03:00
levlam
4a809ed51a Add get_first_url to test. 2023-10-19 13:46:36 +03:00
levlam
a7e98779f0 Add test for is_visible_url. 2023-10-19 13:45:39 +03:00
levlam
cf423903a0 Add new entities to the fix_formatted_text test. 2023-10-18 13:14:07 +03:00
levlam
896de65c3e Improve field name. 2023-02-11 22:37:43 +03:00
levlam
7eee3f469a Update clang-format to 16.0.0. 2023-02-08 15:28:36 +03:00
levlam
1919671df3 Improve parse_html test. 2023-01-09 17:07:08 +03:00
levlam
cf1984844b Update copyright year. 2023-01-01 00:28:08 +03:00
levlam
0bf3e7f0e6 Treat usernames of length 4 as valid. 2022-10-25 19:25:15 +03:00
levlam
738f0493b1 Fix test. 2022-10-26 08:53:09 +03:00
levlam
faa738d6a9 Keep only Slice overload of utf8_utf16_substr. 2022-09-22 12:08:34 +03:00
levlam
4543c485a7 Optimize fix_url. 2022-08-20 13:44:55 +03:00
levlam
4206246b0c Simplify match_url code. 2022-08-20 11:34:21 +03:00
levlam
0d2ddc2d56 Allow only domain symbols in user data after first dot to improve performance. 2022-08-19 21:01:39 +03:00
levlam
31a4608463 Fix fix_formatted_text test. 2022-08-19 15:05:49 +03:00
levlam
8f81a46ede Allow some new characters in hashtags. 2022-07-29 16:23:05 +03:00
levlam
eef3fe5932 Support custom emoji in parse_html. 2022-07-19 14:13:37 +03:00
levlam
8e09a83506 Support custom emoji in MarkdownV2. 2022-07-18 23:40:57 +03:00
levlam
382bd2a066 Add find_url tests. 2022-02-03 15:53:36 +03:00
levlam
a4d80c76b3 Allow middle dot in hashtags. 2022-01-31 02:19:17 +03:00
levlam
d3c712e660 Increase maximum allowed TLD length in email address. 2022-01-30 13:51:28 +03:00
levlam
8085779cdc Update copyright year. 2022-01-01 03:35:39 +03:00
levlam
19f1f66eca Support tg-spoiler HTML tag. 2021-12-31 17:15:11 +03:00
levlam
68539fe846 Add textEntityTypeSpoiler. 2021-12-28 20:41:37 +03:00
levlam
9f44816a62 Minor improvements. 2021-10-21 12:51:16 +03:00
levlam
41c391f140 Update layer to 133. 2021-09-03 12:27:59 +03:00
levlam
f63196f9fa Improve URL and email matching. 2021-09-09 17:59:24 +03:00
levlam
84ad2e5b19 Remove redundant semicolons. 2021-08-30 23:27:32 +03:00
levlam
5c2441021e Add fast path in remove_invalid_entities. 2021-08-18 21:37:31 +03:00
levlam
c667f6c9bb Improve test. 2021-08-05 01:23:16 +03:00
levlam
14cf908017 Implement find_media_timestamps. 2021-07-28 08:30:22 +03:00
levlam
389e92f1f4 Add skip_media_timestamps parameter to get_formatted_text. 2021-07-26 22:48:33 +03:00
levlam
13d5854e2f Update match_cashtags. 2021-08-03 02:58:12 +03:00
levlam
9628668def Minor improvements. 2021-06-23 03:22:23 +03:00
levlam
8b87e8ed56 Allow pre, TextUrl and TextMention entities, containing only new lines. 2021-06-09 20:35:02 +03:00
levlam
a630c87178 Add tg URLs parsing. 2021-06-03 18:27:40 +03:00
levlam
c9de490c7f Allow dashes in URLs. 2021-06-03 15:21:26 +03:00
levlam
90e253d90c Remove REGISTER_TESTS define. 2021-05-26 00:41:15 +03:00
levlam
a6a4eb6616 Don't include SliceBuilder.h in logging.h. 2021-05-17 15:21:11 +03:00
levlam
add28462a0 Fix Slice underflow. 2021-05-14 13:18:52 +03:00
levlam
f0e7b211c3 Use case-insensitive comparison for short mention entities. 2021-03-20 22:57:34 +03:00
levlam
b07a9efb2e Disable SFTP link highlighting. 2021-02-03 21:08:01 +03:00
levlam
52c1da0a70 Update copyright year. 2021-01-01 15:57:46 +03:00
levlam
582206d641 Use Random::fast_bool.
GitOrigin-RevId: 42da8a237c6dfbb6e72bc5b21482891b6c9d58b5
2020-10-08 12:56:08 +03:00
levlam
8a1ffe0cbb Fix remove_invalid_entities.
GitOrigin-RevId: 6cad36ac6017dcc3870411129a1b0512f9351d17
2020-07-13 15:34:56 +03:00
levlam
480f826d16 Do not use C-style casts.
GitOrigin-RevId: 6187bc8f4837fd40aba7ef613e09ecb93e3cf951
2020-06-14 05:27:49 +03:00
levlam
42f88e3b72 Remove whitespaces at the beginning of some entities.
GitOrigin-RevId: b0597524571c15b3ffbfec613cb856bfa6e7a224
2020-05-11 01:31:29 +03:00