aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/xgo4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/xgo b/bin/xgo
index fc6dbe32..6b354ac9 100755
--- a/bin/xgo
+++ b/bin/xgo
@@ -12,8 +12,8 @@ for url ; do (
# If it's a YouTube video without a given start time, load it in mpv(1)
case $url in
- # If this is a GitHub link, swap "blob" for "raw" to get the actual file
- *://github.com/*/blob/*)
+ # If this is a GitHub or GitLab link, swap "blob" for "raw" to get the actual file
+ *://github.com/*/blob/*|*://gitlab.com/*/blob/*)
url=$(printf '%s\n' "$url" | sed 's_/blob/_/raw/_')
;;