hotfix tag for github urls

This commit is contained in:
Jonathan Rainville 2018-05-31 10:37:40 -04:00
parent e582ae3877
commit 59f98c6f0c
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ function getExternalContractUrl(file) {
// [4] path // [4] path
// [5] branch // [5] branch
const match = file.match( const match = file.match(
/(git:\/\/)?github\.[a-z]+\/([-a-zA-Z0-9@:%_+.~#?&=]+)\/([-a-zA-Z0-9@:%_+.~#?&=]+)\/([-a-zA-Z0-9@:%_+.~?\/&=]+)#?([a-zA-Z0-1\/_.-]*)?/ /(git:\/\/)?github\.[a-z]+\/([-a-zA-Z0-9@:%_+.~#?&=]+)\/([-a-zA-Z0-9@:%_+.~#?&=]+)\/([-a-zA-Z0-9@:%_+.~?\/&=]+)#?([a-zA-Z0-9\/_.-]*)?/
); );
if (!match) { if (!match) {
console.error(MALFORMED_ERROR + file); console.error(MALFORMED_ERROR + file);