From 2f37a00c6f4d2dec8be11fa2186974203226121a Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Wed, 8 Jul 2015 17:11:58 -0400 Subject: [PATCH] Use extra parentheses to avoid warning message in debug mode. Resolves at least one line from issue #1173. --- unpacked/MathJax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unpacked/MathJax.js b/unpacked/MathJax.js index 48a11c40c..625d17251 100644 --- a/unpacked/MathJax.js +++ b/unpacked/MathJax.js @@ -1202,7 +1202,7 @@ MathJax.Localization = { function (string,regex) { var result = [], match, last = 0; regex.lastIndex = 0; - while (match = regex.exec(string)) { + while ((match = regex.exec(string))) { result.push(string.substr(last,match.index-last)); result.push.apply(result,match.slice(1)); last = match.index + match[0].length;