B OpenNebula/one#7069: fix kvmrc ruby parser regexp (#3729)

This commit is contained in:
MarioRobres authored and GitHub committed 2025-07-16 12:10:57 +02:00
1 parent 36918fdd01
commit cb9ae8bc08
1 file changed
+1 -1
+1 -1
View File
@@ -50,7 +50,7 @@ module VirtualMachineManagerKVM
File.readlines(path).each do |l|
next if l.empty? || l[0] == '#'
m = l.match(/(export)?[[:blank:]]*([^=]+)=([^[[:blank:]]]+)$/)
m = l.match(/(export)?[[:blank:]]*([^=]+)=([[:blank:]]*(['"]).*?\4|[^#\n]*)/)
next unless m