mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Include the trailing space for cashout in the optional match for cashout
This commit is contained in:
@@ -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")
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user