mirror of
https://gitlab.com/Deukhoofd/DeukBot4.git
synced 2025-09-04 16:37:19 +00:00
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…
x
Reference in New Issue
Block a user