fix: GitLab work_items paste detection (#11820)

closes #11819
This commit is contained in:
Tom Moor
2026-03-19 17:56:33 -04:00
committed by GitHub
parent 14fc3b01db
commit 9efcb2d534
+2 -2
View File
@@ -102,8 +102,8 @@ export const determineMentionType = ({
return MentionType.PullRequest;
}
if (
/\/-\/issues\/\d+/.test(pathname) ||
(/\/-\/issues\/?$/.test(pathname) && hasShowParam)
/\/-\/(issues|work_items)\/\d+/.test(pathname) ||
(/\/-\/(issues|work_items)\/?$/.test(pathname) && hasShowParam)
) {
return MentionType.Issue;
}