Include the trailing space for cashout in the optional match for cashout

This commit is contained in:
barelyprofessional
2026-02-05 23:34:57 -06:00
parent 57e1b9c3b9
commit 696339f359

View File

@@ -13,17 +13,17 @@ public class MinesCommand : ICommand
{ {
public List<Regex> Patterns => [ public List<Regex> Patterns => [
//attempting to start a game below here //attempting to start a game below here
new Regex(@"^mines (?<bet>\d+\.\d+) (?<size>\d+) (?<mines>\d+) (?<picks>\d+) (?<cashout>cashout|)$", RegexOptions.IgnoreCase), new Regex(@"^mines (?<bet>\d+\.\d+) (?<size>\d+) (?<mines>\d+) (?<picks>\d+)(?<cashout> cashout|)$", RegexOptions.IgnoreCase),
new Regex(@"^mines (?<bet>\d+) (?<size>\d+) (?<mines>\d+) (?<picks>\d+) (?<cashout>cashout|)$", RegexOptions.IgnoreCase), new Regex(@"^mines (?<bet>\d+) (?<size>\d+) (?<mines>\d+) (?<picks>\d+)(?<cashout> cashout|)$", RegexOptions.IgnoreCase),
new Regex(@"^mines (?<bet>\d+\.\d+) (?<size>\d+) (?<mines>\d+) (?<betString>.+) (?<cashout>cashout|)$", RegexOptions.IgnoreCase), new Regex(@"^mines (?<bet>\d+\.\d+) (?<size>\d+) (?<mines>\d+) (?<betString>.+)(?<cashout> cashout|)$", RegexOptions.IgnoreCase),
new Regex(@"^mines (?<bet>\d+) (?<size>\d+) (?<mines>\d+) (?<betString>.+) (?<cashout>cashout|)$", RegexOptions.IgnoreCase), new Regex(@"^mines (?<bet>\d+) (?<size>\d+) (?<mines>\d+) (?<betString>.+)(?<cashout> cashout|)$", RegexOptions.IgnoreCase),
//attempting to continue a game below here //attempting to continue a game below here
new Regex(@"^mines (?<picks>\d+) (?<cashout>cashout|)$", RegexOptions.IgnoreCase), new Regex(@"^mines (?<picks>\d+)(?<cashout> cashout|)$", RegexOptions.IgnoreCase),
new Regex(@"^mines (?<betString>.+) (?<cashout>cashout|)$", RegexOptions.IgnoreCase), new Regex(@"^mines (?<betString>.+)(?<cashout> cashout|)$", RegexOptions.IgnoreCase),
//cashout //cashout
new Regex(@"^mines (?<cashout>cashout)$", RegexOptions.IgnoreCase), new Regex(@"^mines(?<cashout> cashout)$", RegexOptions.IgnoreCase),
//refresh //refresh
new Regex(@"^mines (?<refresh>refresh)$", RegexOptions.IgnoreCase), new Regex(@"^mines(?<refresh> refresh)$", RegexOptions.IgnoreCase),
//get info //get info
new Regex("^mines") new Regex("^mines")
]; ];