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
40f5c846
Commit
40f5c846
authored
Oct 21, 2016
by
Sebastian
Browse files
TENATIVE -> TENTATIVE
close #45
parent
6b8a3025
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/event.js
View file @
40f5c846
...
...
@@ -18,7 +18,7 @@ var ICalEvent = function(_data, calendar) {
vars
=
{
allowedRepeatingFreq
:
[
'
SECONDLY
'
,
'
MINUTELY
'
,
'
HOURLY
'
,
'
DAILY
'
,
'
WEEKLY
'
,
'
MONTHLY
'
,
'
YEARLY
'
],
allowedStatuses
:
[
'
CONFIRMED
'
,
'
TENATIVE
'
,
'
CANCELLED
'
]
allowedStatuses
:
[
'
CONFIRMED
'
,
'
TEN
T
ATIVE
'
,
'
CANCELLED
'
]
};
data
=
{
...
...
@@ -615,6 +615,10 @@ var ICalEvent = function(_data, calendar) {
return
this
;
}
// https://github.com/sebbo2002/ical-generator/issues/45
if
(
status
===
'
TENATIVE
'
)
{
status
=
'
TENTATIVE
'
;
}
if
(
vars
.
allowedStatuses
.
indexOf
(
status
.
toUpperCase
())
===
-
1
)
{
throw
'
`status` must be one of the following:
'
+
vars
.
allowedStatuses
.
join
(
'
,
'
)
+
'
!
'
;
}
...
...
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