commit 2f37a00c6f4d2dec8be11fa2186974203226121a
parent 15c9159cb23f3bed33eaf430e85dd32962987ff1
Author: Davide P. Cervone <dpvc@union.edu>
Date: Wed, 8 Jul 2015 17:11:58 -0400
Use extra parentheses to avoid warning message in debug mode. Resolves at least one line from issue #1173.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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;