summaryrefslogtreecommitdiff
path: root/src/generic/apt/matching/pattern.h
diff options
context:
space:
mode:
authorDaniel Hartwig <mandyke@gmail.com>2012-06-08 17:12:32 +0800
committerDaniel Hartwig <mandyke@gmail.com>2012-06-08 17:12:32 +0800
commitcc6370366dfab801233d7aa99f7b1900125185c6 (patch)
treed1fe67925ff69fc8fb88d01a1758005ff2a8420a /src/generic/apt/matching/pattern.h
parent24e4c8dab029ac59437f9392a8d3732c6893a3e3 (diff)
downloadaptitude-cc6370366dfab801233d7aa99f7b1900125185c6.tar.gz
Regex strings count as search patterns
Apt-utils treat regex strings as a search pattern, we should too.
Diffstat (limited to 'src/generic/apt/matching/pattern.h')
-rw-r--r--src/generic/apt/matching/pattern.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/generic/apt/matching/pattern.h b/src/generic/apt/matching/pattern.h
index 5aad42f8..96d48550 100644
--- a/src/generic/apt/matching/pattern.h
+++ b/src/generic/apt/matching/pattern.h
@@ -2021,8 +2021,8 @@ namespace aptitude
* This is used in situations where it would be counterintuitive
* for all strings to be treated as search patterns, but where we
* want search patterns to be available. Strings are considered
- * to be seach patterns if they contain a tilde (~) or a question
- * mark (?).
+ * to be seach patterns if they contain a tilde (~), a question
+ * mark (?), or any regex characters (.?+*|[^$).
*
* \return \b true if the string qualifies as a search pattern.
*/