mirror of
1
Fork 0
gotosocial/internal/text
ugla 52109776f6
[bugfix] Fix unicode-unaware word boundary check in hashtags (#1049)
* [bugfix] Fix unicode-unaware word boundary check in hashtag regex

Go `\b` does not care for Unicode, and without lookahead, the workarounds got
very ugly. So I replaced the regex with a parser.

The parser runs in O(n) time and performance should not be affected.

* [bugfix] Add back hashtag max length and add tests for it
2022-11-15 16:05:34 +01:00
..
common.go [bugfix] Fix unicode-unaware word boundary check in hashtags (#1049) 2022-11-15 16:05:34 +01:00
common_test.go [bugfix] html escape special characters in text instead of totally removing them (#719) 2022-07-19 15:21:17 +02:00
emojify.go [feature] Add opt-in RSS feed for account's latest Public posts (#897) 2022-10-08 14:00:39 +02:00
formatter.go [bugfix] Fix emphasis being added to emoji shortcodes with markdown parsing (#856) 2022-09-27 14:27:53 +02:00
formatter_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
link.go [bugfix] Fix existing bio text showing as HTML (#531) 2022-05-07 17:55:27 +02:00
link_test.go [bugfix] html escape special characters in text instead of totally removing them (#719) 2022-07-19 15:21:17 +02:00
markdown.go [bugfix] Fix emphasis being added to emoji shortcodes with markdown parsing (#856) 2022-09-27 14:27:53 +02:00
markdown_test.go [bugfix] Fix emphasis being added to emoji shortcodes with markdown parsing (#856) 2022-09-27 14:27:53 +02:00
plain.go [bugfix] html escape special characters in text instead of totally removing them (#719) 2022-07-19 15:21:17 +02:00
plain_test.go [bugfix] html escape special characters in text instead of totally removing them (#719) 2022-07-19 15:21:17 +02:00
removehtml_test.go [bugfix] Fix HTML escaping in instance title (#607) 2022-05-26 11:37:13 +02:00
sanitize.go [chore] Fix rel="nofollow" so that it only applies to external links (#991) 2022-11-07 14:25:36 +01:00
sanitize_test.go [feature] Allow users to set custom css for their profiles + threads (#808) 2022-09-12 13:14:29 +02:00