PUD: posFile: use case insensitive regular expression matching
authorFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 6 Jun 2012 14:58:50 +0000 (16:58 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 7 Jun 2012 22:30:05 +0000 (00:30 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/pud/src/posFile.c

index 02f9e36..67d5d2f 100644 (file)
@@ -51,12 +51,12 @@ bool startPositionFile(void) {
                return true;
        }
 
-       if (regcomp(&regexComment, regexCommentString, REG_EXTENDED)) {
+       if (regcomp(&regexComment, regexCommentString, REG_EXTENDED | REG_ICASE)) {
                pudError(false, "Could not compile regex \"%s\"", regexCommentString);
                return false;
        }
 
-       if (regcomp(&regexNameValue, regexNameValueString, REG_EXTENDED)) {
+       if (regcomp(&regexNameValue, regexNameValueString, REG_EXTENDED | REG_ICASE)) {
                pudError(false, "Could not compile regex \"%s\"", regexNameValueString);
                regfree(&regexComment);
                return false;