Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
lib-ical
Commits
3921df38
Commit
3921df38
authored
Sep 13, 2016
by
Sebastian
Browse files
README: repeating.exclude
parent
7f1494c3
Changes
2
Show whitespace changes
Inline
Side-by-side
README.md
View file @
3921df38
...
...
@@ -338,7 +338,8 @@ event.repeating({
until
:
new
Date
(
'
Jan 01 2014 00:00:00 UTC
'
),
byDay
:
[
'
su
'
,
'
mo
'
],
// repeat only sunday and monday
byMonth
:
[
1
,
2
],
// repeat only in january und february,
byMonthDay
:
[
1
,
15
]
// repeat only on the 1st and 15th
byMonthDay
:
[
1
,
15
],
// repeat only on the 1st and 15th
exclude
:
[
new
Date
(
'
Dec 25 2013 00:00:00 UTC
'
)]
// exclude these dates
});
```
...
...
lib/event.js
View file @
3921df38
...
...
@@ -312,7 +312,7 @@ var ICalEvent = function(_data, calendar) {
throw
'
`repeating.byDay` contains invalid value `
'
+
s
[
2
]
+
'
`!
'
;
}
data
.
repeating
.
byDay
.
push
(
s
[
1
]
+
s
[
2
]);
data
.
repeating
.
byDay
.
push
(
s
[
1
]
+
s
[
2
]);
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment