Skip to content

Commit e53ca10

Browse files
Merge pull request #81 from vishwanatharondekar/fix-error-messaging
Update regex to fix subgroup project name parsing
2 parents 0a7e5c7 + 5246855 commit e53ca10

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var URL = require('url');
1515
var options = require('./options')
1616
var packageJson = require('./package.json')
1717

18-
var regexParseProjectName = /^([^:]+:\/\/[^\/]+?\/|[^:]+:)([^\/]+\/[^\/]+?)+(?:\.git)?\s*$/;
18+
var regexParseProjectName = /(.+:\/\/.+?\/|.+:)(.+\/[^\.]+)+(\.git)?/;
1919

2020
var gitlab = new Gitlab(options);
2121
gitlab.options = options;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "git-lab-cli",
3-
"version": "2.0.5",
3+
"version": "2.0.6",
44
"repository" : "https://github.com/vishwanatharondekar/gitlab-cli",
55
"description": "Create a merge request from command line in gitlab",
66
"keywords" : [

0 commit comments

Comments
 (0)