Skip to content

Commit 9085a01

Browse files
committed
chore: remove console log
1 parent 380a3d7 commit 9085a01

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

packages/commons/docs-utils/src/isPreviewUrl.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ export function isPreviewDomain(domain: string): boolean {
33
// The uuid part can be truncated, so allow trailing dash and partial uuid
44
const previewUuidPattern = /preview-[0-9a-f-]+/i;
55
const hasPattern = previewUuidPattern.test(domain);
6-
// Add logs for debugging
7-
if (typeof console !== "undefined" && typeof console.log === "function") {
8-
console.log(`[isPreviewDomain] Checking domain: ${domain}`);
9-
console.log(`[isPreviewDomain] Pattern: ${previewUuidPattern}`);
10-
console.log(`[isPreviewDomain] Match result: ${hasPattern}`);
11-
}
126
return hasPattern;
137
}
148

0 commit comments

Comments
 (0)