Explorar el Código

Doc: username converted to GitHub profile link in changelog page

qingwei.li hace 8 años
padre
commit
3a1f9480de
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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();