Skip to content

Commit

Permalink
Prevent modification of Period jCal object when converting to iCal st…
Browse files Browse the repository at this point in the history
…ring
  • Loading branch information
darktrojan authored and kewisch committed Oct 15, 2022
1 parent 2f21bc4 commit 2fedc5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ical/design.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,6 @@ const icalValues = extend(commonValues, {
}
},
period: {

fromICAL: function(string) {
let parts = string.split('/');
parts[0] = icalValues['date-time'].fromICAL(parts[0]);
Expand All @@ -432,6 +431,7 @@ const icalValues = extend(commonValues, {
},

toICAL: function(parts) {
parts = parts.slice();
if (!design.strict && parts[0].length == 10) {
parts[0] = icalValues.date.toICAL(parts[0]);
} else {
Expand Down

0 comments on commit 2fedc5c

Please sign in to comment.