File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/helix-shared-config/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ function stripQuery(m, ...specialparams) {
4444
4545const onedriveDecorator = {
4646 test ( m ) {
47- return / ^ h t t p s : \/ \/ [ a - z 0 - 9 - ] + \. s h a r e p o i n t \. c o m \/ / . test ( m . url ) || m . url . startsWith ( 'https://1drv.ms/' ) || m . url . startsWith ( 'onedrive:' ) ;
47+ return / ^ h t t p s : \/ \/ [ a - z 0 - 9 - ] + \. s h a r e p o i n t \. c o m \/ / . test ( m . url ) || m . url ? .startsWith ( 'https://1drv.ms/' ) || m . url ? .startsWith ( 'onedrive:' ) ;
4848 } ,
4949 decorate ( m ) {
5050 return {
@@ -56,7 +56,7 @@ const onedriveDecorator = {
5656
5757const googleDecorator = {
5858 test ( m ) {
59- return m . url . startsWith ( 'https://drive.google.com/' ) || m . url . startsWith ( 'gdrive:' ) ;
59+ return m . url ? .startsWith ( 'https://drive.google.com/' ) || m . url ? .startsWith ( 'gdrive:' ) ;
6060 } ,
6161 decorate ( m ) {
6262 const url = new URL ( m . url ) ;
You can’t perform that action at this time.
0 commit comments