From c14b3435d09ab040f497102562cd3c5eac6494a3 Mon Sep 17 00:00:00 2001 From: gnieark Date: Fri, 3 Jun 2016 12:17:25 +0200 Subject: [PATCH] fix --- html/testBotScripts/tictactoe.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/testBotScripts/tictactoe.html b/html/testBotScripts/tictactoe.html index c9d48a5..3d6ed9f 100644 --- a/html/testBotScripts/tictactoe.html +++ b/html/testBotScripts/tictactoe.html @@ -150,7 +150,7 @@ function play(player){ } //test format of response - var reg = r'/^[0-2]-[0-2]$/'; + var reg = /^[0-2]-[0-2]$/; if (!reg.test(cellTarget)){ addLog('player ' + player + ' a fait une réponse non conforme: ' + xhr.responseText); return;