Fix timestamp regex
This commit is contained in:
parent
929abcf7e0
commit
56f1e2740e
|
@ -47,7 +47,7 @@ namespace DeukBot4.MessageHandlers.CommandHandler.RequestStructure
|
||||||
case ParameterType.User:
|
case ParameterType.User:
|
||||||
return $" *(?:<@!*(?<{index}>\\d+)>|(?<{index}>\\d+)(?:$| |\n))";
|
return $" *(?:<@!*(?<{index}>\\d+)>|(?<{index}>\\d+)(?:$| |\n))";
|
||||||
case ParameterType.Timespan:
|
case ParameterType.Timespan:
|
||||||
return $" *(?<{index}>\\d+.*d*[smhd])";
|
return $" *(?<{index}>\\d+\\.*d*[smhd])";
|
||||||
default:
|
default:
|
||||||
throw new ArgumentOutOfRangeException(nameof(type), type, null);
|
throw new ArgumentOutOfRangeException(nameof(type), type, null);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue