Skip to content

Commit

Permalink
Move omer emoji to iCalendar event title suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
mjradwin committed Apr 26, 2022
1 parent 9304a8a commit b5b1cd8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 5 additions & 1 deletion src/icalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/icalendar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit b5b1cd8

Please sign in to comment.