diff options
| author | 2025-02-15 14:37:36 +0100 | |
|---|---|---|
| committer | 2025-02-15 14:37:36 +0100 | |
| commit | 7611a6bee4bcbad2f1710aafa99aba730e5cf995 (patch) | |
| tree | 33ab7bee30379e16f6869b2efda5494be8aeb858 /format.c | |
| parent | enforce tls when supported && add tests (diff) | |
| parent | Version 2.72 RELEASED. (diff) | |
| download | snac2-7611a6bee4bcbad2f1710aafa99aba730e5cf995.tar.gz snac2-7611a6bee4bcbad2f1710aafa99aba730e5cf995.tar.xz snac2-7611a6bee4bcbad2f1710aafa99aba730e5cf995.zip | |
Merge tag '2.72' into curl-smtp
Version 2.72 RELEASED.
Diffstat (limited to 'format.c')
| -rw-r--r-- | format.c | 6 |
1 files changed, 4 insertions, 2 deletions
| @@ -78,6 +78,8 @@ xs_dict *emojis(void) | |||
| 78 | return d; | 78 | return d; |
| 79 | } | 79 | } |
| 80 | 80 | ||
| 81 | /* Non-whitespace without trailing comma, period or closing paren */ | ||
| 82 | #define NOSPACE "([^[:space:],.)]+|[,.)]+[^[:space:],.)])+" | ||
| 81 | 83 | ||
| 82 | static xs_str *format_line(const char *line, xs_list **attach) | 84 | static xs_str *format_line(const char *line, xs_list **attach) |
| 83 | /* formats a line */ | 85 | /* formats a line */ |
| @@ -96,8 +98,8 @@ static xs_str *format_line(const char *line, xs_list **attach) | |||
| 96 | "__[^_]+__" "|" //anzu | 98 | "__[^_]+__" "|" //anzu |
| 97 | "!\\[[^]]+\\]\\([^\\)]+\\)" "|" | 99 | "!\\[[^]]+\\]\\([^\\)]+\\)" "|" |
| 98 | "\\[[^]]+\\]\\([^\\)]+\\)" "|" | 100 | "\\[[^]]+\\]\\([^\\)]+\\)" "|" |
| 99 | "[a-z]+:/" "/[^[:space:]]+" "|" | 101 | "[a-z]+:/" "/" NOSPACE "|" |
| 100 | "(mailto|xmpp):[^@[:space:]]+@[^[:space:]]+" | 102 | "(mailto|xmpp):[^@[:space:]]+@" NOSPACE |
| 101 | ")"); | 103 | ")"); |
| 102 | int n = 0; | 104 | int n = 0; |
| 103 | 105 | ||