summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Reply/Plugin/Autocomplete/Packages.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Reply/Plugin/Autocomplete/Packages.pm b/lib/Reply/Plugin/Autocomplete/Packages.pm
index 4f7f2a4..bfdd143 100644
--- a/lib/Reply/Plugin/Autocomplete/Packages.pm
+++ b/lib/Reply/Plugin/Autocomplete/Packages.pm
@@ -25,7 +25,7 @@ sub tab_handler {
my ($line) = @_;
# $module_name_rx does not permit trailing ::
- my ($package_fragment) = $line =~ /($module_name_rx(?:::)?)$/;
+ my ($package_fragment) = $line =~ /(${module_name_rx}:?:?)$/;
return unless $package_fragment;
my $file_fragment = $package_fragment;