The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 25, 16:00 UTC
nit
Julius Marminge committed
Feb 27, 2026 at 20:49 UTC
a6c57e169aa8e06189d2a8e88672549731b305c0
1 file changed
+4
-6
apps/server/src/orchestration/Layers/ProjectionPipeline.ts
+4
-6
@@ -101,14 +101,12 @@ function parseBase64DataUrl(
101
dataUrl: string,
102
): { readonly mimeType: string; readonly base64: string } | null {
103
const match = /^data:([^;,]+);base64,([a-z0-9+/=\r\n]+)$/i.exec(dataUrl.trim());
104
- if (!match) {
105
- return null;
106
- }
104
+ if (!match) return null;
105
+
106
const mimeType = match[1]?.trim().toLowerCase();
107
const base64 = match[2]?.replace(/\s+/g, "");
109
- if (!mimeType || !base64) {
110
- return null;
111
- }
108
+ if (!mimeType || !base64) return null;
109
+
110
return { mimeType, base64 };
111
}
112