Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

unminify: Do not assume /static/ exists in the stacktrace.

Alex Vandiverede0ae9069c3
diff --git a/zerver/lib/unminify.py b/zerver/lib/unminify.py
index 4d32362be99..e859a2bc893 100644
--- a/zerver/lib/unminify.py
+++ b/zerver/lib/unminify.py
@@ -45,7 +45,7 @@ class SourceMap:
out: str = ""
for ln in stacktrace.splitlines():
out += ln + "\n"
- match = re.search(r"/static/webpack-bundles/([^:]+):(\d+):(\d+)", ln)
+ match = re.search(r"/webpack-bundles/([^:]+):(\d+):(\d+)", ln)
if match:
# Get the appropriate source map for the minified file.
minified_src = match.groups()[0]