aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2018-11-13 19:41:56 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2018-11-13 19:41:56 +0000
commit3cfabf4880b79b1b53b43c04910b77218ff8b44b (patch)
tree532b769056c3be49d4523cb598cfdd9fb7b6bf6b
parent30a195d307f9166ea5ca6b0b93ec3b205472ee87 (diff)
downloadqarepo-3cfabf4880b79b1b53b43c04910b77218ff8b44b.tar
qarepo-3cfabf4880b79b1b53b43c04910b77218ff8b44b.tar.gz
qarepo-3cfabf4880b79b1b53b43c04910b77218ff8b44b.tar.bz2
qarepo-3cfabf4880b79b1b53b43c04910b77218ff8b44b.tar.xz
qarepo-3cfabf4880b79b1b53b43c04910b77218ff8b44b.zip
Ensure a '+' in a package name is taken literally.
-rw-r--r--qarepo.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/qarepo.pl b/qarepo.pl
index cc6045e..5ce5714 100644
--- a/qarepo.pl
+++ b/qarepo.pl
@@ -25,7 +25,7 @@ use Gtk3 '-init';
use MDK::Common;
use URPM;
-my $version = 'v1.4';
+my $version = 'v1.5';
###############################################################################
# States and Status
@@ -658,6 +658,7 @@ sub trim {
sub wildcard_to_regexp {
my ($pattern) = @_;
$pattern =~ s/\./\\./g;
+ $pattern =~ s/\+/\\+/g;
$pattern =~ s/\*/.*/g;
$pattern =~ s/\?/./g;
$pattern;