Skip to content

An AI-powered search engine with a generative UI

Format R2 client

Yoshiki Miurae85d98e0f94b
diff --git a/lib/storage/r2-client.ts b/lib/storage/r2-client.ts
index 39d243c1..ce785181 100644
--- a/lib/storage/r2-client.ts
+++ b/lib/storage/r2-client.ts
@@ -80,7 +80,10 @@ function isObjectKeyWithinPrefix(key: string, prefix: string) {
const normalizedKey = normalizeObjectKey(key)
const normalizedPrefix = normalizeObjectKey(prefix).replace(/\/+$/, '')
- return normalizedPrefix.length > 0 && normalizedKey.startsWith(`${normalizedPrefix}/`)
+ return (
+ normalizedPrefix.length > 0 &&
+ normalizedKey.startsWith(`${normalizedPrefix}/`)
+ )
}
export async function getSignedFileUrl(