]> Pileus Git - ~andy/rhawk/commitdiff
Fix number regex again
authorAndy Spencer <andy753421@gmail.com>
Fri, 24 Oct 2014 20:59:57 +0000 (20:59 +0000)
committerAndy Spencer <andy753421@gmail.com>
Fri, 24 Oct 2014 20:59:57 +0000 (20:59 +0000)
spades.awk

index 5e3be7d9a031f097184065b1cfbc98c000b22ae2..75d12b93d0c9b4aa6ebb15cad11e5dd0b8f8b909 100644 (file)
@@ -579,7 +579,7 @@ sp_state ~ "(bid|pass|play)" &&
 
 sp_valid &&
 sp_state == "bid" &&
-/^\.bid [1-9][0-9]*$/ {
+/^\.bid (0|[1-9][0-9]*)$/ {
        if ($2 < 0 || $2 > 13) {
                say("You can only bid from 0 to 13")
        } else {