File tree 2 files changed +2
-2
lines changed 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ public override async Task ExecuteAsync(GameEvent gameEvent)
229
229
/// </summary>
230
230
public class TempBanCommand : Command
231
231
{
232
- private static readonly string TempBanRegex = @"^([0-9]{1,5}\w +)\ (.+)" ;
232
+ private static readonly string TempBanRegex = @"^([0-9]{1,5}\p{L} +)\ (.+)" ;
233
233
private readonly ApplicationConfiguration _appConfig ;
234
234
235
235
public TempBanCommand ( ApplicationConfiguration appConfig , CommandConfiguration config ,
Original file line number Diff line number Diff line change @@ -510,7 +510,7 @@ public static Game GetGame(string gameName)
510
510
511
511
public static TimeSpan ParseTimespan ( this string input )
512
512
{
513
- var expressionMatch = Regex . Match ( input , @"^([0-9]{1,5})(\w +)" ) ;
513
+ var expressionMatch = Regex . Match ( input , @"^([0-9]{1,5})(\p{L} +)" ) ;
514
514
515
515
if ( ! expressionMatch . Success ) // fallback to default tempban length of 1 hour
516
516
{
You can’t perform that action at this time.
0 commit comments