Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/support merge requests #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/contextmenu.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const PULL_REQUEST_PATH_REGEXP = /.+\/([^/]+)\/(pull)\/[^/]+\/(.*)/;
const PULL_REQUEST_PATH_REGEXP = /.+\/([^\/-][^\/]*)\/(?:-\/)?(pull|merge_requests)\/[^\/]+\/(.*)/;

Check failure on line 1 in src/contextmenu.js

View workflow job for this annotation

GitHub Actions / build (10.x)

Unnecessary escape character: \/

Check failure on line 1 in src/contextmenu.js

View workflow job for this annotation

GitHub Actions / build (10.x)

Unnecessary escape character: \/

Check failure on line 1 in src/contextmenu.js

View workflow job for this annotation

GitHub Actions / build (10.x)

Unnecessary escape character: \/

Check failure on line 1 in src/contextmenu.js

View workflow job for this annotation

GitHub Actions / build (12.x)

Unnecessary escape character: \/

Check failure on line 1 in src/contextmenu.js

View workflow job for this annotation

GitHub Actions / build (12.x)

Unnecessary escape character: \/

Check failure on line 1 in src/contextmenu.js

View workflow job for this annotation

GitHub Actions / build (12.x)

Unnecessary escape character: \/

Check failure on line 1 in src/contextmenu.js

View workflow job for this annotation

GitHub Actions / build (14.x)

Unnecessary escape character: \/

Check failure on line 1 in src/contextmenu.js

View workflow job for this annotation

GitHub Actions / build (14.x)

Unnecessary escape character: \/

Check failure on line 1 in src/contextmenu.js

View workflow job for this annotation

GitHub Actions / build (14.x)

Unnecessary escape character: \/

class OptionValidationError extends Error {
constructor(message) {
Expand Down Expand Up @@ -89,7 +89,7 @@
};
}

const pathRegexp = /.+\/([^/]+)\/(blob|tree)\/[^/]+\/(.*)/;
const pathRegexp = /.+\/([^\/-][^\/]*)\/(?:-\/)?(tree|blob)\/[^\/]+\/(.*)/;

Check failure on line 92 in src/contextmenu.js

View workflow job for this annotation

GitHub Actions / build (10.x)

Unnecessary escape character: \/

Check failure on line 92 in src/contextmenu.js

View workflow job for this annotation

GitHub Actions / build (10.x)

Unnecessary escape character: \/

Check failure on line 92 in src/contextmenu.js

View workflow job for this annotation

GitHub Actions / build (10.x)

Unnecessary escape character: \/

Check failure on line 92 in src/contextmenu.js

View workflow job for this annotation

GitHub Actions / build (12.x)

Unnecessary escape character: \/

Check failure on line 92 in src/contextmenu.js

View workflow job for this annotation

GitHub Actions / build (12.x)

Unnecessary escape character: \/

Check failure on line 92 in src/contextmenu.js

View workflow job for this annotation

GitHub Actions / build (12.x)

Unnecessary escape character: \/

Check failure on line 92 in src/contextmenu.js

View workflow job for this annotation

GitHub Actions / build (14.x)

Unnecessary escape character: \/

Check failure on line 92 in src/contextmenu.js

View workflow job for this annotation

GitHub Actions / build (14.x)

Unnecessary escape character: \/

Check failure on line 92 in src/contextmenu.js

View workflow job for this annotation

GitHub Actions / build (14.x)

Unnecessary escape character: \/

if (!pathRegexp.test(path)) {
throw new Error(`Invalid link. Could not extract info from: ${path}.`);
Expand Down
Loading