From 56f1e2740e4d9cfb32fa3ca6ef2229a860653e47 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 12 Aug 2018 14:40:47 +0200 Subject: [PATCH] Fix timestamp regex --- .../CommandHandler/RequestStructure/ParameterMatcher.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DeukBot4/MessageHandlers/CommandHandler/RequestStructure/ParameterMatcher.cs b/DeukBot4/MessageHandlers/CommandHandler/RequestStructure/ParameterMatcher.cs index 84e122b..65ff88b 100644 --- a/DeukBot4/MessageHandlers/CommandHandler/RequestStructure/ParameterMatcher.cs +++ b/DeukBot4/MessageHandlers/CommandHandler/RequestStructure/ParameterMatcher.cs @@ -47,7 +47,7 @@ namespace DeukBot4.MessageHandlers.CommandHandler.RequestStructure case ParameterType.User: return $" *(?:<@!*(?<{index}>\\d+)>|(?<{index}>\\d+)(?:$| |\n))"; case ParameterType.Timespan: - return $" *(?<{index}>\\d+.*d*[smhd])"; + return $" *(?<{index}>\\d+\\.*d*[smhd])"; default: throw new ArgumentOutOfRangeException(nameof(type), type, null); }