Skip to content

Commit

Permalink
make regex more flexible for different quotation marks (#22629)
Browse files Browse the repository at this point in the history
  • Loading branch information
Staars authored Dec 12, 2024
1 parent dc7cb05 commit 6268066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pio-tools/solidify-from-url.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(")","")
Expand Down

0 comments on commit 6268066

Please sign in to comment.