Allow time parser to take spaces
So you can pass in `10h 5m 2s` instead of `10h+5m+2s`. Works for things like `10h +5m -2s` as well
This commit is contained in:
parent
2d1eebfade
commit
f99b7ec359
1 changed files with 1 additions and 1 deletions
|
|
@ -534,7 +534,7 @@ namespace TShockAPI
|
|||
var sb = new StringBuilder(3);
|
||||
for (int i = 0; i < str.Length; i++)
|
||||
{
|
||||
if (Char.IsDigit(str[i]) || (str[i] == '-' || str[i] == '+'))
|
||||
if (Char.IsDigit(str[i]) || (str[i] == '-' || str[i] == '+' || str[i] == ' '))
|
||||
sb.Append(str[i]);
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue