ninjabackend: fix matching of empty strings

closes #7977
pull/7979/head
Alexander Neumann 4 years ago committed by Jussi Pakkanen
parent aeb995fdc6
commit 7d4d25353c
  1. 2
      mesonbuild/backend/ninjabackend.py

@ -266,7 +266,7 @@ class NinjaRule:
# expand variables in command
command = ' '.join([self._quoter(x) for x in self.command + self.args])
estimate = len(command)
for m in re.finditer(r'(\${\w*}|\$\w*)?[^$]*', command):
for m in re.finditer(r'(\${\w+}|\$\w+)?[^$]*', command):
if m.start(1) != -1:
estimate -= m.end(1) - m.start(1) + 1
chunk = m.group(1)

Loading…
Cancel
Save