diff options
author | Alexander Neumann <30894796+Neumann-A@users.noreply.github.com> | 2020-11-13 15:14:15 +0100 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-11-13 17:46:32 +0200 |
commit | 7d4d25353c1e36a97959f44ed909f80f92b61744 (patch) | |
tree | 2dd29d66ad89418b476bae615a2df9b7bafd7f84 /mesonbuild/backend | |
parent | aeb995fdc649d4e3df83330ea2afebbf117543df (diff) | |
download | meson-7d4d25353c1e36a97959f44ed909f80f92b61744.zip meson-7d4d25353c1e36a97959f44ed909f80f92b61744.tar.gz meson-7d4d25353c1e36a97959f44ed909f80f92b61744.tar.bz2 |
ninjabackend: fix matching of empty strings
closes #7977
Diffstat (limited to 'mesonbuild/backend')
-rw-r--r-- | mesonbuild/backend/ninjabackend.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index daada12..1ed742b 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/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) |