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

Doc: username converted to GitHub profile link in changelog page
pull/2390/head
baiyaaaaa 2017-01-12 22:39:19 +08:00 committed by GitHub
commit a9bb494456
1 changed files with 1 additions and 0 deletions

View File

@ -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(/#(\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>`; this.$refs.timeline.innerHTML = `${fragments}</li>`;
changeLog.$el.remove(); changeLog.$el.remove();