Commit 40f5c846 authored by Sebastian's avatar Sebastian
Browse files

TENATIVE -> TENTATIVE

close #45
parent 6b8a3025
......@@ -18,7 +18,7 @@ var ICalEvent = function(_data, calendar) {
vars = {
allowedRepeatingFreq: ['SECONDLY', 'MINUTELY', 'HOURLY', 'DAILY', 'WEEKLY', 'MONTHLY', 'YEARLY'],
allowedStatuses: ['CONFIRMED', 'TENATIVE', 'CANCELLED']
allowedStatuses: ['CONFIRMED', 'TENTATIVE', '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(', ') + '!';
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment