From 163d24c7d0a5a8ed1163da00fe56a2f7f4aef283 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 12 Jul 2024 19:00:59 +0200 Subject: [PATCH] fix: correct way to replace imports in collecstatic --- umap/storage.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/umap/storage.py b/umap/storage.py index 52c9ace2..1ca63a86 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")""", ), ), )