It was always intended that regular expression matching be case

insensitive.  Make it so.
This commit is contained in:
Warner Losh 2006-01-08 05:18:36 +00:00
parent 662f5fb6d9
commit 9cb4a7bd64
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=154109

View File

@ -166,7 +166,7 @@ match::match(config &c, const char *var, const char *re)
_re = "^";
_re.append(c.expand_string(string(re)));
_re.append("$");
regcomp(&_regex, _re.c_str(), REG_EXTENDED | REG_NOSUB);
regcomp(&_regex, _re.c_str(), REG_EXTENDED | REG_NOSUB | REG_ICASE);
}
match::~match()