From d9ff2f67f50f5d1c15c64897fc92903e4a8408d7 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 12 Dec 2016 16:44:35 +0000 Subject: [PATCH] [Minor] Further simplifications --- src/ragel/content_type.rl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ragel/content_type.rl b/src/ragel/content_type.rl index f6763b121d..bbc6d46136 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?)*; -- 2.47.3