summaryrefslogtreecommitdiffstats
path: root/urpmf
diff options
context:
space:
mode:
Diffstat (limited to 'urpmf')
-rwxr-xr-xurpmf3
1 files changed, 2 insertions, 1 deletions
diff --git a/urpmf b/urpmf
index 2fe4ec9f..40a9be12 100755
--- a/urpmf
+++ b/urpmf
@@ -92,7 +92,8 @@ while (defined($_ = shift @ARGV)) {
/^-a$/ and do { $expr .= ' && '; next };
/^-o$/ and do { $expr .= ' || '; next };
/^[!\(\)]$/ and do { $expr .= $_; next };
- #- assume a regex directly
+ #- assume a regex directly unless a ++ is inside the string, someother to use ?
+ /\+\+/ and $_ = quotemeta $_;
$expr .= 'm{'.$_.'}'.$pattern;
}