Skip to content

Commit

Permalink
fix: correct way to replace imports in collecstatic
Browse files Browse the repository at this point in the history
  • Loading branch information
yohanboniface committed Jul 12, 2024
1 parent 472f557 commit 163d24c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions umap/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ class UmapManifestStaticFilesStorage(ManifestStaticFilesStorage):
'import"%(url)s"\n',
),
(
r"""(?P<matched>import\(["'](?P<url>.*?)["']\))\.then""",
"""import("%(url)s")""",
r"""(?P<matched>import\(["'](?P<url>.*?)["']\)\.then)""",
"""import("%(url)s").then""",
),
(
r"""(?P<matched>await import\(["'](?P<url>.*?)["']\))""",
"""import("%(url)s")""",
"""await import("%(url)s")""",
),
),
)
Expand Down

0 comments on commit 163d24c

Please sign in to comment.