Skip to content

Commit

Permalink
domains: support Google Calendar URLs with '/u/0' in it
Browse files Browse the repository at this point in the history
  • Loading branch information
iparamonau committed Jan 12, 2023
1 parent 2163adc commit 0926484
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/domains/google.com/google.calendar.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default {

re: [
/https?:\/\/(?:www|calendar)\.google\.com\/calendar\/embed\/?\?([^\/]+)/i
/https?:\/\/(?:www|calendar)\.google\.com\/calendar\/(?:u\/\d+\/)?embed\/?\?([^\/]+)/i
],

mixins: ['*'],
Expand All @@ -18,6 +18,7 @@ export default {
tests: [{
noFeeds: true
},
'https://calendar.google.com/calendar/embed?src=92600p5mb857b0t0jq0f6l8vpg%40group.calendar.google.com&ctz=America/Toronto'
'https://calendar.google.com/calendar/embed?src=92600p5mb857b0t0jq0f6l8vpg%40group.calendar.google.com&ctz=America/Toronto',
'https://calendar.google.com/calendar/u/0/embed?src=92600p5mb857b0t0jq0f6l8vpg%40group.calendar.google.com&ctz=America/Toronto'
]
};

0 comments on commit 0926484

Please sign in to comment.