diff --git a/umap/storage.py b/umap/storage.py index 52c9ace20..1ca63a86c 100644 --- a/umap/storage.py +++ b/umap/storage.py @@ -32,12 +32,12 @@ class UmapManifestStaticFilesStorage(ManifestStaticFilesStorage): 'import"%(url)s"\n', ), ( - r"""(?Pimport\(["'](?P.*?)["']\))\.then""", - """import("%(url)s")""", + r"""(?Pimport\(["'](?P.*?)["']\)\.then)""", + """import("%(url)s").then""", ), ( r"""(?Pawait import\(["'](?P.*?)["']\))""", - """import("%(url)s")""", + """await import("%(url)s")""", ), ), )