Browse code

shared/optparser.c: extend MATCH_BOOL regex (bb#1324)

git-svn: trunk@4576

Tomasz Kojm authored on 2008/12/23 06:22:17
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Mon Dec 22 22:32:59 CET 2008 (tk)
2
+---------------------------------
3
+ * shared/optparser.c: extend MATCH_BOOL regex (bb#1324)
4
+
1 5
 Mon Dec 22 22:16:40 CET 2008 (tk)
2 6
 ---------------------------------
3 7
  * shared/optparser.c: handle --user/-u in freshclam (bb#1323)
... ...
@@ -49,7 +49,7 @@
49 49
 
50 50
 #define MATCH_NUMBER "^[0-9]+$"
51 51
 #define MATCH_SIZE "^[0-9]+[kKmM]?$"
52
-#define MATCH_BOOL "^(yes|true|1|no|false|0)$"
52
+#define MATCH_BOOL "^([yY]es|[tT]rue|1|[nN]o|[fF]alse|0)$"
53 53
 
54 54
 static const struct clam_option {
55 55
     const char *name;