Skip to content

Commit 3a26418

Browse files
authored
Merge pull request #131 from CentreForDigitalHumanities/fix/vbuild-re
Fix for vbuild not working on python 3.13
2 parents 25a3e5e + 29c8405 commit 3a26418

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/cdh/vue/vbuild.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class _VueJs:
8686
this module is a dependency of the other, making it necessary to load it
8787
earlier. If so, sorted() will place this before the other module!
8888
"""
89-
IMPORT_RE = r"^import (\w+) from \S+$(?m)"
89+
IMPORT_RE = r"^import (\w+) from \S+$"
9090

9191
def __init__(self, name, template_id, code):
9292
self.name = name
@@ -102,7 +102,7 @@ def __init__(self, name, template_id, code):
102102
else:
103103
raise Exception("Can't find valid content inside '{' and '}'")
104104

105-
self.dependencies = set(re.findall(_VueJs.IMPORT_RE, code))
105+
self.dependencies = set(re.findall(_VueJs.IMPORT_RE, code, re.MULTILINE))
106106

107107
def __repr__(self):
108108
return "<_VueJS: {}: {}>".format(self.name, self.dependencies)

0 commit comments

Comments
 (0)