Skip to content
This repository was archived by the owner on Oct 10, 2024. It is now read-only.

Commit 42193a5

Browse files
authored
fix: timezone must be matched (#454) (#455)
1 parent 0779868 commit 42193a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/timezone.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ export const timezone = async (message: Message) => {
2424
if (match) {
2525
const [mentioned, hour, minutes, dayNight, zone] = match;
2626

27+
if (!zone) {
28+
return;
29+
}
30+
2731
const proposedZone = TIMEZONES.find(
2832
(item) => item.abbr === zone.toUpperCase()
2933
);

0 commit comments

Comments
 (0)