Skip to content

Commit

Permalink
feat: add travel emoji (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgokcin authored Nov 17, 2024
1 parent b7ed2f7 commit 4539b1d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Code.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const emojiMap = {
bus: "🚌",
journey: "🚆",
trip: "🚆",
travel: "🚇",
stay: "🏠",
"holy shred": "💪",
"holy ride": "🚵",
Expand Down Expand Up @@ -86,6 +87,7 @@ function ColorEvents() {
flight: /\bflight\b/i,
journey: /\bjourney\b/i,
trip: /\btrip\b/i,
travel: /\btravel\b/i,
bus: /\bbus\b/i,
stay: /\bstay\b/i,
reservation: /\breservation\b/i,
Expand Down Expand Up @@ -123,7 +125,8 @@ function ColorEvents() {
regexMap["flight"].test(lowerTitle) ||
regexMap["journey"].test(lowerTitle) ||
regexMap["trip"].test(lowerTitle) ||
regexMap["bus"].test(lowerTitle)
regexMap["bus"].test(lowerTitle) ||
regexMap["travel"].test(lowerTitle)
) {
color = CalendarApp.EventColor.ORANGE;
Logger.log("Title: " + title + " - Color to print: ORANGE");
Expand Down

0 comments on commit 4539b1d

Please sign in to comment.