Skip to content

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

remove false positive re2

Matheus Nogueirad3e313aa7752
diff --git a/backend/src/ee/services/secret-rotation-v2/unix-linux-local-account-rotation/pty-expect-engine.ts b/backend/src/ee/services/secret-rotation-v2/unix-linux-local-account-rotation/pty-expect-engine.ts
index d363e183f5..5fe23527f9 100644
--- a/backend/src/ee/services/secret-rotation-v2/unix-linux-local-account-rotation/pty-expect-engine.ts
+++ b/backend/src/ee/services/secret-rotation-v2/unix-linux-local-account-rotation/pty-expect-engine.ts
@@ -89,10 +89,10 @@ export type TExpectSessionConfig = {
*
* Callers provide:
* - `advance`: the state machine. Called repeatedly until it returns false (no progress).
- * Reads `ctx.pending`, calls `ctx.consume` / `ctx.clearPending` / `ctx.write` /
- * `ctx.finish` / `ctx.safeReject` as needed.
+ * Reads `ctx.pending`, calls `ctx.consume`, `ctx.clearPending`, `ctx.write`,
+ * `ctx.finish`, or `ctx.safeReject` as needed.
* - `resolveOnClose`: called once on stream close to decide resolve vs. reject.
- * - `overflowMessage` / `timeoutMessage`: build the error string for each failure mode.
+ * - `overflowMessage` or `timeoutMessage`: build the error string for each failure mode.
*/
export const runExpectSession = ({
stream,