From 4539b1d9b02ca7cb3fc7f972f5d0fea7bbcea1b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?deniz=20g=C3=B6k=C3=A7in?= <33603535+dgokcin@users.noreply.github.com> Date: Sun, 17 Nov 2024 21:41:09 +0300 Subject: [PATCH] feat: add travel emoji (#10) --- Code.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Code.js b/Code.js index 4ec0b37..8d2e66b 100644 --- a/Code.js +++ b/Code.js @@ -5,6 +5,7 @@ const emojiMap = { bus: "🚌", journey: "🚆", trip: "🚆", + travel: "🚇", stay: "🏠", "holy shred": "💪", "holy ride": "🚵", @@ -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, @@ -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");