From 46769c800d8bdcf580c9ffa041ae760fc257fd9c Mon Sep 17 00:00:00 2001 From: Alex Pabouctsidis Date: Thu, 13 Oct 2022 10:59:42 +0200 Subject: [PATCH] fixed regex again --- fff_mock_gen/fff_mock_gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fff_mock_gen/fff_mock_gen.py b/fff_mock_gen/fff_mock_gen.py index b5e06c4..8b16b80 100644 --- a/fff_mock_gen/fff_mock_gen.py +++ b/fff_mock_gen/fff_mock_gen.py @@ -52,7 +52,7 @@ def main(): # void function_name (const char* name); # find all function prototypes - function_prototypes = re.findall(r'([\w|*|\s]+)\s(\w+)\s*\(((\w|\s|[,]|[*]|\[|\])*)\);', f.read()) + function_prototypes = re.findall(r'([\w|*|" "]+)\s(\w+)\s*\(((\w|\s|[,]|[*]|\[|\])*)\);', f.read()) # remove if contains 'typedef' function_prototypes = [x for x in function_prototypes if 'typedef' not in x[0]]