@hebcal/icalendar
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -898,2 +898,3 @@ 'use strict'; | ||
const timed = Boolean(e.eventTime); | ||
const candles = desc === 'Havdalah' || desc === 'Candle lighting'; | ||
let location; | ||
@@ -935,6 +936,8 @@ | ||
const colon = subj.indexOf(': '); | ||
if (candles) { | ||
const colon = subj.indexOf(': '); | ||
if (colon != -1) { | ||
subj = subj.substring(0, colon); | ||
if (colon != -1) { | ||
subj = subj.substring(0, colon); | ||
} | ||
} | ||
@@ -979,3 +982,3 @@ } else { | ||
const memo = desc === 'Havdalah' || desc === 'Candle lighting' ? '' : createMemo(e, options.il); | ||
const memo = candles ? '' : createMemo(e, options.il); | ||
addOptional(arr, 'DESCRIPTION', memo); | ||
@@ -982,0 +985,0 @@ addOptional(arr, 'LOCATION', location); |
{ | ||
"name": "@hebcal/icalendar", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"author": "Michael J. Radwin (https://github.com/mjradwin)", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51475
1024