Skip to content

Commit

Permalink
enhance(gdocs): allow ?tab= param coming from gdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelgerber committed Nov 14, 2024
1 parent 6d37fbb commit 53dd6f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const IMAGES_DIRECTORY = "/images/published/"
* https://docs.google.com/spreadsheets/d/abcd1234
*/
export const gdocUrlRegex =
/https:\/\/docs\.google\.com\/document(?:\/u\/\d)?\/d\/([\-\w]+)\/?(edit)?#?/
/https:\/\/docs\.google\.com\/document(?:\/u\/\d)?\/d\/([\-\w]+)\/?(edit)?(\?tab=[\w\.]+)#?/

export const GDOCS_BASE_URL = "https://docs.google.com"
export const GDOCS_URL_PLACEHOLDER = `${GDOCS_BASE_URL}/document/d/****/edit`
Expand Down

0 comments on commit 53dd6f0

Please sign in to comment.