filters/makefilekconfig.py: Fix capturing group position

Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
This commit is contained in:
Maxime Chretien 2020-05-22 14:31:03 +02:00
parent 3a6a1d0764
commit 70a071bf7a

View file

@ -13,7 +13,7 @@ def replace_makefilekconfig(m):
makefilekconfig_filters = {
'case': 'filename',
'match': {'Makefile'},
'prerex': '(\$\(CONFIG_\w+\))',
'prerex': '\$\((CONFIG_\w+)\)',
'prefunc': keep_makefilekconfig,
'postrex': '__KEEPMAKEFILEKCONFIG__([A-J]+)',
'postfunc': replace_makefilekconfig