Changed regular expresion to account for new (longer) Rackspace address. Resolves issue #709.

This commit is contained in:
Davide P. Cervone 2014-02-16 05:16:53 -05:00
parent 2927bbfc34
commit d494748ded

View File

@ -2941,8 +2941,8 @@ MathJax.Hub.Startup = {
}
}
CONFIG.root = scripts[i].src.replace(/(^|\/)[^\/]*(\?.*)?$/,'')
.replace(/^(https?:\/\/(cdn.mathjax.org|c328740.ssl.cf1.rackcdn.com)\/mathjax\/)(latest)/,
"$1"+BASE.version+"-$3");
.replace(/^(https?:\/\/(cdn.mathjax.org|[0-9a-f]+(-[0-9a-f]+)?.ssl.cf1.rackcdn.com)\/mathjax\/)(latest)/,
"$1"+BASE.version+"-$4");
break;
}
}