From 6268066bac0bfeca7cd76133f37fa2eadcd45f85 Mon Sep 17 00:00:00 2001 From: Christian Baars Date: Thu, 12 Dec 2024 11:21:47 +0100 Subject: [PATCH] make regex more flexible for different quotation marks (#22629) --- pio-tools/solidify-from-url.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pio-tools/solidify-from-url.py b/pio-tools/solidify-from-url.py index 5a8d68ad6..c5c2fd4bf 100644 --- a/pio-tools/solidify-from-url.py +++ b/pio-tools/solidify-from-url.py @@ -53,7 +53,7 @@ def addEntryToModtab(source): is_module = False - pattern = (r'''(?<=module\()[^"].*''') # module?? + pattern = (r'''(?<=module\([\"\']).*[\"\']''') # module?? result = re.findall(pattern,code) if len(result) > 0: class_name = result[0].replace("'","").replace('"','').replace(")","")