mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-29 20:58:54 +00:00
parse vm config: remove "\s*" from multi-line comment regex
To be consistent with PBS's implementation of multi-line comments remove "\s*" here too. Since the regex isn't lazy .* matches everything \s* would anyway. (Note that new lines occurs after "$"). Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
This commit is contained in:
parent
8a0d269b75
commit
d1e7b92289
@ -1,4 +1,4 @@
|
|||||||
package PVE::QemuServer;
|
rpackage PVE::QemuServer;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
@ -2410,7 +2410,7 @@ sub parse_vm_config {
|
|||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($line =~ m/^\#(.*)\s*$/) {
|
if ($line =~ m/^\#(.*)$/) {
|
||||||
$descr = '' if !defined($descr);
|
$descr = '' if !defined($descr);
|
||||||
$descr .= PVE::Tools::decode_text($1) . "\n";
|
$descr .= PVE::Tools::decode_text($1) . "\n";
|
||||||
next;
|
next;
|
||||||
|
Loading…
Reference in New Issue
Block a user