Sfoglia il codice sorgente

Doc: username converted to GitHub profile link in changelog page

qingwei.li 8 anni fa
parent
commit
3a1f9480de
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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();