diff --git a/html/testBotScripts/tictactoe.html b/html/testBotScripts/tictactoe.html index bc10e25..c9d48a5 100644 --- a/html/testBotScripts/tictactoe.html +++ b/html/testBotScripts/tictactoe.html @@ -150,7 +150,7 @@ function play(player){ } //test format of response - var reg = '/^[0-2]-[0-2]$/'; + var reg = r'/^[0-2]-[0-2]$/'; if (!reg.test(cellTarget)){ addLog('player ' + player + ' a fait une réponse non conforme: ' + xhr.responseText); return;