diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-12 16:44:35 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-12 16:44:35 +0000 |
commit | d9ff2f67f50f5d1c15c64897fc92903e4a8408d7 (patch) | |
tree | 0e529964517718c30eb612d16a98b983206b01fd | |
parent | 43b88f6f4449e822ee2c0782de0da1167b86a4ae (diff) | |
download | rspamd-d9ff2f67f50f5d1c15c64897fc92903e4a8408d7.tar.gz rspamd-d9ff2f67f50f5d1c15c64897fc92903e4a8408d7.zip |
[Minor] Further simplifications
-rw-r--r-- | src/ragel/content_type.rl | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ragel/content_type.rl b/src/ragel/content_type.rl index f6763b121..bbc6d4613 100644 --- a/src/ragel/content_type.rl +++ b/src/ragel/content_type.rl @@ -21,11 +21,8 @@ ietf_token = token+; custom_x_token = 'x'i "-" token+; extension_token = ietf_token | custom_x_token; - discrete_type = 'text'i | 'image'i | 'audio'i | 'video'i | - 'application'i | extension_token; - composite_type = 'message'i | 'multipart'i | extension_token; iana_token = token+; - main_type = (discrete_type | composite_type) >Type_Start %Type_End; + main_type = (extension_token) >Type_Start %Type_End; sub_type = (extension_token | iana_token) >Subtype_Start %Subtype_End; content_type = main_type ("/" sub_type)? (((CFWS? ";"+) | CFWS) parameter CFWS?)*; |