Merge branch 'issue1173' into develop. Issue #1173.

This commit is contained in:
Davide P. Cervone 2015-07-09 11:27:05 -04:00
commit d2cf7edb0f

View File

@ -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;