fix ceval SF parser

pull/2661/head
Thibault Duplessis 2017-02-12 11:08:13 +01:00
parent 4b96a07711
commit cc8777e701
1 changed files with 2 additions and 2 deletions

View File

@ -36,8 +36,8 @@ module.exports = function(worker, opts) {
var matches = text.match(EVAL_REGEX);
if (!matches) {
if (!engineVersion) {
var m = text.match(/Stockfish (.+) by /);
engineVersion = m && m[1];
var match = text.match(/Stockfish (.+) by /);
engineVersion = match && match[1];
}
return;
}