浏览代码

Merge pull request #2376 from QingWei-Li/doc/changelog-user

Doc: username converted to GitHub profile link in changelog page
baiyaaaaa 8 年之前
父节点
当前提交
a9bb494456
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      examples/pages/template/changelog.tpl

+ 1 - 0
examples/pages/template/changelog.tpl

@@ -159,6 +159,7 @@
         }
       }
       fragments = fragments.replace(/#(\d+)/g, '<a href="https://github.com/ElemeFE/element/issues/$1" target="_blank">#$1</a>');
+      fragments = fragments.replace(/@(\w+)/g, '<a href="https://github.com/$1" target="_blank">@$1</a>');
       this.$refs.timeline.innerHTML = `${fragments}</li>`;
 
       changeLog.$el.remove();