xbps-query(8): --regex now matches EREs in case insensitive mode.
This commit is contained in:
@@ -181,7 +181,7 @@ ownedby(struct xbps_handle *xhp, const char *pat, bool repo, bool regex)
|
||||
|
||||
if (regex) {
|
||||
ffd.rematch = true;
|
||||
if (regcomp(&ffd.regex, ffd.pat, REG_EXTENDED|REG_NOSUB) != 0)
|
||||
if (regcomp(&ffd.regex, ffd.pat, REG_EXTENDED|REG_NOSUB|REG_ICASE) != 0)
|
||||
return EINVAL;
|
||||
}
|
||||
if (repo)
|
||||
|
@@ -237,7 +237,7 @@ search(struct xbps_handle *xhp, bool repo_mode, const char *pat, const char *pro
|
||||
|
||||
sd.regex = regex;
|
||||
if (regex) {
|
||||
if (regcomp(&sd.regexp, pat, REG_EXTENDED|REG_NOSUB) != 0)
|
||||
if (regcomp(&sd.regexp, pat, REG_EXTENDED|REG_NOSUB|REG_ICASE) != 0)
|
||||
return errno;
|
||||
}
|
||||
sd.repo_mode = repo_mode;
|
||||
|
Reference in New Issue
Block a user