Skip to content

Commit

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

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

0 comments on commit 101ab7a

Please sign in to comment.