mirror of
1
Fork 0
gotosocial/internal/util
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
..
namestring.go [chore] Webfinger rework (#627) 2022-06-11 11:01:34 +02:00
namestring_test.go [chore] Webfinger rework (#627) 2022-06-11 11:01:34 +02:00
paging.go [chore] Make paging logic more generic (#901) 2022-10-10 15:52:49 +02:00
statustools.go [bugfix] Fix unicode-unaware word boundary check in hashtags (#1049) 2022-11-15 16:05:34 +01:00
statustools_test.go [bugfix] Fix unicode-unaware word boundary check in hashtags (#1049) 2022-11-15 16:05:34 +01:00
time.go [chore] Use shorter timestamps in frontend for replies (#875) 2022-10-02 15:54:42 +02:00
time_test.go [bugfix] Update time marshalling format to provide 3 digits of ms (#630) 2022-06-04 20:03:01 +02:00
unique.go [security] Check all involved IRIs during block checking (#593) 2022-05-23 11:46:50 +02:00