It was always intended that regular expression matching be case
insensitive. Make it so.
This commit is contained in:
parent
662f5fb6d9
commit
9cb4a7bd64
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=154109
@ -166,7 +166,7 @@ match::match(config &c, const char *var, const char *re)
|
|||||||
_re = "^";
|
_re = "^";
|
||||||
_re.append(c.expand_string(string(re)));
|
_re.append(c.expand_string(string(re)));
|
||||||
_re.append("$");
|
_re.append("$");
|
||||||
regcomp(&_regex, _re.c_str(), REG_EXTENDED | REG_NOSUB);
|
regcomp(&_regex, _re.c_str(), REG_EXTENDED | REG_NOSUB | REG_ICASE);
|
||||||
}
|
}
|
||||||
|
|
||||||
match::~match()
|
match::~match()
|
||||||
|
Loading…
Reference in New Issue
Block a user