diff --git a/lib/utils/utils.js b/lib/utils/utils.js index 0063c1ec..192c5507 100644 --- a/lib/utils/utils.js +++ b/lib/utils/utils.js @@ -148,7 +148,7 @@ function getExternalContractUrl(file) { // [4] path // [5] branch 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) { console.error(MALFORMED_ERROR + file);