]> git.proxmox.com Git - pve-client.git/commitdiff
extractapi.pl: correctly store regex as string
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 24 Jul 2018 08:02:00 +0000 (10:02 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 25 Jul 2018 08:22:35 +0000 (10:22 +0200)
extractapi.pl

index 8a650df26a9e99a4bff642ba8d8bf2b0bed295ab..b2ec7b0ffea410c51c152587b17608b4790ab4b3 100755 (executable)
@@ -23,7 +23,7 @@ sub remove_code_refs {
                if ($itemclass eq 'CODE') {
                    undef $tree->{$k};
                } elsif ($itemclass eq 'Regexp') {
                if ($itemclass eq 'CODE') {
                    undef $tree->{$k};
                } elsif ($itemclass eq 'Regexp') {
-                   $tree->{$k} = "$tree"; # return string representation
+                   $tree->{$k} = "$tree->{$k}"; # return string representation
                } else {
                    remove_code_refs($tree->{$k});
                }
                } else {
                    remove_code_refs($tree->{$k});
                }