提交 f7105bfa 编写于 作者: B bors

Merge pull request #20682 from sfackler/fix-impls

Fix JS error

Reviewed-by: alexcrichton
......@@ -708,7 +708,7 @@
var code = $('<code>').append(structs[j]);
$.each(code.find('a'), function(idx, a) {
var href = $(a).attr('href');
if (href && !href.startsWith('http')) {
if (href && href.indexOf('http') !== 0) {
$(a).attr('href', rootPath + href);
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册