瀏覽代碼

Fixed regexp for parsing git repository URL.

Szymon Kupś 10 年之前
父節點
當前提交
edf24fefe2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dev/tasks/utils/git.js

+ 1 - 1
dev/tasks/utils/git.js

@@ -36,7 +36,7 @@ module.exports = {
 	 * @returns {String} urlInfo.branch
 	 */
 	parseRepositoryUrl( url ) {
-		const regexp = /^(git@github\.com:|https?:\/\/github.com\/)?([^#]+)(?:#)?(.*)$/;
+		const regexp = /^(git@github\.com:|https?:\/\/github\.com\/)?([^#]+)(?:#)?(.*)$/;
 		const match = url.match( regexp );
 		let server;
 		let repository;