Fix SPLIT routine for IE8 and below (index was wrong for when there are more than one match -- argh!). Resolves issue .

This commit is contained in:
Davide P. Cervone 2014-02-12 16:05:20 -05:00
parent 126bd1c373
commit 08ba269ccf

View File

@ -1135,7 +1135,7 @@ MathJax.Localization = {
var result = [], match, last = 0;
regex.lastIndex = 0;
while (match = regex.exec(string)) {
result.push(string.substr(last,match.index));
result.push(string.substr(last,match.index-last));
result.push.apply(result,match.slice(1));
last = match.index + match[0].length;
}