There was an error while loading. Please reload this page.
/preview
parse.ts
1 parent a62be51 commit 87ec4a7Copy full SHA for 87ec4a7
2 files changed
backend/api/package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@compass/api",
3
- "version": "1.36.2",
+ "version": "1.36.3",
4
"private": true,
5
"description": "Backend API endpoints",
6
"main": "src/serve.ts",
backend/shared/src/parse.ts
@@ -524,6 +524,7 @@ function cleanHref(href: string): string {
524
export function extractGoogleDocId(url: string) {
525
const patterns = [
526
/\/document\/d\/([a-zA-Z0-9-_]+)\/edit/, // standard /d/{id}/edit format
527
+ /\/document\/d\/([a-zA-Z0-9-_]+)\/preview/, // standard /d/{id}/preview format
528
// /id=([a-zA-Z0-9-_]+)/, // ?id= query param format (catches false negatives)
529
// /^([a-zA-Z0-9-_]+)$/, // raw ID passed directly (catches false negatives)
530
]
0 commit comments