diff --git a/package.json b/package.json index e1a396e..54a825c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hebcal/icalendar", - "version": "4.17.0", + "version": "4.17.1", "author": "Michael J. Radwin (https://github.com/mjradwin)", "keywords": [ "ical", diff --git a/src/icalendar.js b/src/icalendar.js index 36d2dd8..db25cef 100644 --- a/src/icalendar.js +++ b/src/icalendar.js @@ -112,7 +112,11 @@ export class IcalEvent { if (options.emoji) { const prefix = ev.getEmoji(); if (prefix) { - subj = prefix + ' ' + subj; + if (mask & flags.OMER_COUNT) { + subj = subj + ' ' + prefix; + } else { + subj = prefix + ' ' + subj; + } } } diff --git a/src/icalendar.spec.js b/src/icalendar.spec.js index 099e303..e5704af 100644 --- a/src/icalendar.spec.js +++ b/src/icalendar.spec.js @@ -496,7 +496,7 @@ test('OmerEvent', (t) => { const expected = [ 'BEGIN:VEVENT', 'DTSTAMP:X', - 'SUMMARY:㊲ 37th day of the Omer', + 'SUMMARY:37th day of the Omer ㊲', 'DTSTART;VALUE=DATE:20210504', 'DTEND;VALUE=DATE:20210505', 'UID:hebcal-20210504-45f4acad',