Commit 908a2341 authored by Melissa Draper's avatar Melissa Draper
Browse files

Add another new google doc url formats (bug #856130)



Google keeps spitting out different urls to their users. Our users
aren't going to understand how to massage these to the correct
format, so we have to try keep up. Bad google, bad.

Change-Id: I06901c142da5db179ef5361d9939ae9a03ead14e
Signed-off-by: default avatarMelissa Draper <melissa@catalyst.net.nz>
parent f403755a
......@@ -156,6 +156,14 @@ class PluginBlocktypeGoogleApps extends SystemBlocktype {
// docs.google.com - Google document (after Sept 2011) incl. custom domain document
// $1 - domain, e.g. /a/domainname/
// $2 - id, key, etc. of the document
array(
'match' => '#.*docs.google.com/([a-zA-Z0-9\_\-\.\/]*)document/d/([a-zA-Z0-9\_\-]+).*#',
'url' => $httpstr . '://docs.google.com/$1document/pub?id=$2',
'type' => 'iframe',
),
// docs.google.com - Google spreadsheet document (after Sept 2011) incl. custom domain document
// $1 - domain, e.g. /a/domainname/
// $2 - id, key, etc. of the document
array(
'match' => '#.*docs.google.com/([a-zA-Z0-9\_\-\.\/]*)spreadsheet/.*key=([a-zA-Z0-9\_\-]+).*#',
'url' => $httpstr . '://docs.google.com/$1spreadsheet/pub?key=$2',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment