]> git.proxmox.com Git - qemu-server.git/commitdiff
pci: to not capture first group in PCIRE
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 5 Oct 2021 13:11:58 +0000 (15:11 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 5 Oct 2021 14:14:42 +0000 (16:14 +0200)
we do not need this group, but want to use the regex where we have
multiple groups, so make it a non-capture group

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/QemuServer/PCI.pm

index 2ee142fc3997a2da9c090bd18dc633ff50ab3ad4..5608207e31073157ef656f1f686129e167e306e5 100644 (file)
@@ -17,7 +17,7 @@ parse_hostpci
 
 our $MAX_HOSTPCI_DEVICES = 16;
 
-my $PCIRE = qr/([a-f0-9]{4}:)?[a-f0-9]{2}:[a-f0-9]{2}(?:\.[a-f0-9])?/;
+my $PCIRE = qr/(?:[a-f0-9]{4}:)?[a-f0-9]{2}:[a-f0-9]{2}(?:\.[a-f0-9])?/;
 my $hostpci_fmt = {
     host => {
        default_key => 1,