Skip to content

Commit

Permalink
fix(gitlab): rework parser to support .git and multiple organization …
Browse files Browse the repository at this point in the history
…groups
  • Loading branch information
dsevillamartin committed Feb 17, 2018
1 parent 74014d9 commit eb49c5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Gitlab/parser.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const urlRegex = /(https?:\/\/)?([\da-z\.-]+\.[a-z\.]{2,6})/; // eslint-disable-line no-useless-escape
const urlRegex = /^(https?:\/\/)?([\da-z\.-]+\.[a-z\.]{2,6})\/?/; // eslint-disable-line no-useless-escape

const getUrl = (str) => urlRegex.exec(str);
const regex = /([^\/\s]+)\/?(?:(\w+))?\/([^\/]+?)$/; // eslint-disable-line no-useless-escape
const regex = /^([^\/\s]+)\/?((?:\/?(?:\w+))*)\/([^\/]+?)(?:\.git)?$/; // eslint-disable-line no-useless-escape

/**
* Gitlab repository
Expand Down

0 comments on commit eb49c5c

Please sign in to comment.