Skip to content

Commit e95fb24

Browse files
committed
[scripts] ,linkify: remove atlOrigin query parameter from Jira URLs
1 parent e22854b commit e95fb24

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/.local/bin/random/,linkify

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ elif echo "$url" | grep -qE '^https://github.com/[^/]*/[^/]*/?$'; then
2626
elif echo "$url" | grep -qE '^https://linear.app/[^/]*/issue/[^/]*/[^/]*$'; then
2727
printf "%s" "$url" | sed "s|https://linear.app/\([^/]*\)/issue/\([^/]*\)/\([^/]*\)|[\2]($url)|"
2828
elif echo "$url" | grep -qE '^https://.*\.atlassian\.net/browse/.*$'; then
29+
url="$(echo "$url" | sed "s|\?atlOrigin=[a-zA-Z0-9]*$||")"
2930
printf "%s" "$url" | sed "s|https://.*/browse/\([^/]*\)|[\1]($url)|"
3031
elif echo "$url" | grep -qE '^https://teams.microsoft.com'; then
3132
# Using sed here was causing issues

0 commit comments

Comments
 (0)