From ae66cfa216a61ee42c1acdb546ff27b639a34ed5 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Sun, 22 May 2022 13:21:57 -0600 Subject: [PATCH] codePreviews: add support for selfhost gitlab --- src/modules/codePreviews.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/codePreviews.js b/src/modules/codePreviews.js index 4653234..1469ea7 100644 --- a/src/modules/codePreviews.js +++ b/src/modules/codePreviews.js @@ -5,7 +5,7 @@ const fetch = require("node-fetch"); const REGEX_GITHUB = /(?:\s|^)https?:\/\/(www\.)?github\.com\/.+?\/.+?\/blob\/([a-zA-Z0-9-_.#/]*)/g; const REGEX_GITLAB = - /(?:\s|^)https?:\/\/(www\.)?gitlab\.com\/.+?\/.+?\/-\/blob\/([a-zA-Z0-9-_.#/]*)/g; + /(?:\s|^)https?:\/\/.+?\/.+?\/.+?\/-\/blob\/([a-zA-Z0-9-_.#/]*)/g; const REGEX_GITEA = /(?:\s|^)https?:\/\/.+?\/.+?\/.+?\/src\/branch\/([a-zA-Z0-9-_.#/]*)/g;