diff --git a/mimedb.c b/mimedb.c index 9b15a9c61..51b8e485e 100644 --- a/mimedb.c +++ b/mimedb.c @@ -66,7 +66,7 @@ license. Read the source code of the library for more information. /** Start tag for langauge-specific comment */ -#define START_TAG "" +#define START_TAG "" /** End tab for comment @@ -434,11 +434,13 @@ static char *get_lang_re() case '.': case '_': if( close ) + { *out++ = ')'; + *out++ = '?'; + } close=1; *out++ = '('; - *out++ = '|'; *out++ = *lang; break; @@ -448,7 +450,10 @@ static char *get_lang_re() } if( close ) + { *out++ = ')'; + *out++ = '?'; + } *out++=0; return buff;