Sfoglia il codice sorgente

Fixed regexp for parsing git repository URL.

Szymon Kupś 10 anni fa
parent
commit
edf24fefe2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;