Skip to content

armgit / laya

Public Imported from GitHub
0

Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.

fix(ts): drop the redundant group around the subject default

Aashish8ef0438ae073
diff --git a/laya-ts/src/email.ts b/laya-ts/src/email.ts
index 12d902c3..701b1119 100644
--- a/laya-ts/src/email.ts
+++ b/laya-ts/src/email.ts
@@ -255,7 +255,7 @@ export function emailState(
maxChars = 3000,
): Record<string, unknown> {
const state: Record<string, unknown> = {
- subject: trimPy((subject ?? "")),
+ subject: trimPy(subject ?? ""),
body: clean ? cleanEmailBody(body ?? "", maxChars) : (body ?? ""),
};
if (sender) state["from"] = sender;