소스 검색

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();