Commit 1b184140 authored by Robert Lyon's avatar Robert Lyon
Browse files

Adding another filter/match for google spreadsheets (Bug #1435750)



Change-Id: I2030a8222ff7691952f9351b297298484f102ac5
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 86c3878d
......@@ -209,6 +209,14 @@ class PluginBlocktypeGoogleApps extends SystemBlocktype {
'url' => $httpstr . '://docs.google.com/$1document/d/$2/pub?embedded=true',
'type' => 'iframe',
),
// docs.google.com/spreadsheets - Google document (updated on Mar 2015)
// $1 - domain, e.g. /a/domainname/
// $2 - id, key, etc. of the spreadsheet
array(
'match' => '#.*docs.google.com/([a-zA-Z0-9\_\-\.\/]*)spreadsheets/d/([a-zA-Z0-9\_\-]+).*#',
'url' => $httpstr . '://docs.google.com/$1spreadsheets/d/$2/pub?embedded=true',
'type' => 'iframe',
),
// docs.google.com - Google spreadsheet document (updated on Mar 2013)
// $1 - domain, e.g. /a/domainname/ (optional)
// $2 - key of the document
......
Markdown is supported
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