Merge branch 'issue1173' into develop. Issue #1173.
This commit is contained in:
commit
d2cf7edb0f
|
@ -1202,7 +1202,7 @@ MathJax.Localization = {
|
||||||
function (string,regex) {
|
function (string,regex) {
|
||||||
var result = [], match, last = 0;
|
var result = [], match, last = 0;
|
||||||
regex.lastIndex = 0;
|
regex.lastIndex = 0;
|
||||||
while (match = regex.exec(string)) {
|
while ((match = regex.exec(string))) {
|
||||||
result.push(string.substr(last,match.index-last));
|
result.push(string.substr(last,match.index-last));
|
||||||
result.push.apply(result,match.slice(1));
|
result.push.apply(result,match.slice(1));
|
||||||
last = match.index + match[0].length;
|
last = match.index + match[0].length;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user