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.

migration_status: Update ANSI code clean up regex.

PieterCK7a2b91ae97a2
diff --git a/zerver/lib/migration_status.py b/zerver/lib/migration_status.py
index d9eb4470a87..7fe15db0a13 100644
--- a/zerver/lib/migration_status.py
+++ b/zerver/lib/migration_status.py
@@ -37,4 +37,4 @@ def get_migration_status(**options: Any) -> str:
)
out.seek(0)
output = out.read()
- return re.sub(r"\x1b\[(1|0)m", "", output)
+ return re.sub(r"\x1b\[[0-9;]*m", "", output)