1
0
mirror of https://gitlab.com/Deukhoofd/DeukBot4.git synced 2025-10-27 17:00:05 +00:00

Fix timestamp regex

This commit is contained in:
2018-08-12 14:40:47 +02:00
parent 929abcf7e0
commit 56f1e2740e

View File

@@ -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);
}