mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
Fix Google sheets regex
This commit is contained in:
@@ -99,7 +99,7 @@ export const embedProviders: IEmbedProvider[] = [
|
|||||||
id: "gsheets",
|
id: "gsheets",
|
||||||
name: "Google Sheets",
|
name: "Google Sheets",
|
||||||
regex:
|
regex:
|
||||||
/^((?:https?:)?\/\/)?((?:www|m)\.)?(docs\.google\.com)\/spreadsheets\/d\/e\/([a-zA-Z0-9_-]+)\/.*$/,
|
/^((?:https?:)?\/\/)?((?:www|m)\.)?(docs\.google\.com)\/spreadsheets\/d\/([a-zA-Z0-9_-]+)\/.*$/,
|
||||||
getEmbedUrl: (match, url: string) => {
|
getEmbedUrl: (match, url: string) => {
|
||||||
return url;
|
return url;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user