]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh
drop regex support from remove_command_options
[debhelper.git] / dh
diff --git a/dh b/dh
index f03bf006d8179b614f60496364a671b6f20c6d99..710117ead15d9db779a913b4068118e3322a2367 100755 (executable)
--- a/dh
+++ b/dh
@@ -346,12 +346,7 @@ sub remove_command_options {
                # Remove only specified options
                if (my $opts = $command_opts{$command}) {
                        foreach my $opt (@_) {
-                               if (ref($opt) eq "Regexp") {
-                                       $opts = [ grep ! /$opt/, @$opts ];
-                               }
-                               else {
-                                       $opts = [ grep { $_ ne $opt } @$opts ];
-                               }
+                               $opts = [ grep { $_ ne $opt } @$opts ];
                        }
                        $command_opts{$command} = $opts;
                }