Dont strip :code:& and :code:- from the end of URLs

Fixes #2436
This commit is contained in:
Kovid Goyal
2020-03-15 08:29:56 +05:30
parent e8a9935cb2
commit e86c712424
4 changed files with 10 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ static inline bool
can_strip_from_end_of_url(uint32_t ch) {
// remove trailing punctuation
return (
(is_P_category(ch) && ch != '/') ||
(is_P_category(ch) && ch != '/' && ch != '&' && ch != '-') ||
ch == '>'
) ? true : false;
}