Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

address reviews

Andrey323d09842c82
diff --git a/frontend/src/pages/pam/PamSessionsPage/components/SessionDetailSheet.tsx b/frontend/src/pages/pam/PamSessionsPage/components/SessionDetailSheet.tsx
index 7c25b6c378..d68b7612c4 100644
--- a/frontend/src/pages/pam/PamSessionsPage/components/SessionDetailSheet.tsx
+++ b/frontend/src/pages/pam/PamSessionsPage/components/SessionDetailSheet.tsx
@@ -65,8 +65,8 @@ const decodeBase64Utf8 = (b64: string): string => {
// Only reached for recordings written before gateways rendered the terminal themselves, which the `rendered` flag distinguishes.
const LEGACY_ANSI_ESCAPE_REGEX = new RegExp(
[
- "\u001B[\\]PX^_][\\s\\S]*?(?:\u0007|\u001B\\\\|$)",
- "[\u001B\u009B]\\[[0-?]*[ -/]*[@-~]",
+ "\u001B[\\]PX^_][\\s\\S]*?(?:\u0007|\u001B\\\\)",
+ "(?:\u001B\\[|\u009B)[0-?]*[ -/]*[@-~]",
"\u001B[()*+\\-./][ -~]",
"\u001B[@-Z\\\\-_]"
].join("|"),