Skip to content

Commit dfd5b7c

Browse files
committed
domains: google.calendar fix href
1 parent 683dccf commit dfd5b7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/domains/google.com/google.calendar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
export default {
22

33
re: [
4-
/^https?:\/\/(?:www|calendar)\.google\.com\/calendar\/embed\/?\?(?:.+)$/i
4+
/^https?:\/\/(?:www|calendar)\.google\.com\/calendar\/(?:u\/\d+\/)?embed\/?\?(?:.+)$/i
55
],
66

77
mixins: ['*'],
88

99
getLink: function(url) {
1010
return {
11-
href: url,
11+
href: url.replace(/\/u\/\d+\//, '/'),
1212
type: CONFIG.T.text_html,
1313
rel: [CONFIG.R.iframely, CONFIG.R.reader],
1414
"aspect-ratio": 800 / 600

0 commit comments

Comments
 (0)