parent
1df89d9448
commit
8df80afa79
3 changed files with 6 additions and 1 deletions
|
|
@ -238,6 +238,8 @@ Detailed list of changes
|
|||
- macOS: Workaround for yet another Tahoe bug causing rendering to fail
|
||||
(:pull:`9520`)
|
||||
|
||||
- URL detection: Allow trailing asterisks in URLs (:iss:`9543`)
|
||||
|
||||
|
||||
0.45.0 [2025-12-24]
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
|||
|
|
@ -58,7 +58,9 @@ is_url_char(uint32_t ch) {
|
|||
static inline bool
|
||||
can_strip_from_end_of_url(uint32_t ch) {
|
||||
// remove trailing punctuation
|
||||
return (char_props_for(ch).is_punctuation && ch != '/' && ch != '&' && ch != '-' && ch != ')' && ch != ']' && ch != '}');
|
||||
return (char_props_for(ch).is_punctuation &&
|
||||
ch != '/' && ch != '&' && ch != '-' && ch != ')' && ch != ']' && ch != '}' && ch != '*'
|
||||
);
|
||||
}
|
||||
|
||||
static inline bool
|
||||
|
|
|
|||
|
|
@ -1711,3 +1711,4 @@ def t(url, x=0, y=0, before='', after='', expected=''):
|
|||
t('http://[::1]:8080/x', after='[') # ]
|
||||
t('http://[::1]:8080/x]y34', expected='http://[::1]:8080/x')
|
||||
t('https://wraps-by-one-char.com[]/x', after='[') # ]
|
||||
t('https://t.me/#1_*_*_*_*')
|
||||
|
|
|
|||
Loading…
Reference in a new issue