Skip to content

Commit

Permalink
Improve regex to match more timestamp variants
Browse files Browse the repository at this point in the history
Co-authored-by: Erisa A <[email protected]>
  • Loading branch information
sthivaios and Erisa authored Nov 4, 2024
1 parent 1fef2c3 commit 3a7211c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Commands/Reminders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public async Task RemindMe(
[RemainingText, Description("The text to send when the reminder triggers.")] string reminder
)
{
string discordTimestampRegexExp = @"^<t:(\d+):[a-z]>$";
string discordTimestampRegexExp = @"^<t:(\d+):?\w*>$";
Match matchesDiscordTimestamp = Regex.Match(timetoParse, discordTimestampRegexExp);


Expand Down

0 comments on commit 3a7211c

Please sign in to comment.