Преглед на файлове

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;