OSDN Git Service

Failed to correctly check Floodgate game names due to the carelss change at the previ...
authorbeatles <beatles@b8c68f68-1e22-0410-b08e-880e1f8202b4>
Tue, 25 Nov 2008 14:50:43 +0000 (14:50 +0000)
committerbeatles <beatles@b8c68f68-1e22-0410-b08e-880e1f8202b4>
Tue, 25 Nov 2008 14:50:43 +0000 (14:50 +0000)
shogi_server/league/floodgate.rb

index f0c18e4..484ffd3 100644 (file)
@@ -10,7 +10,7 @@ class League
       # "floodgate-900-0"
       #
       def game_name?(str)
-        return /^floodgate\-\d+\-\d$/.match(str) ? true : false
+        return /^floodgate\-\d+\-\d+$/.match(str) ? true : false
       end
     end