Skip to content

Commit f8f6446

Browse files
authored
Fix @ in urls (#6027)
Fixes #5924
1 parent e20ee91 commit f8f6446

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/github/prComment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ ${lineContents}
376376
}
377377
const newLinesReplaced = this.replaceNewlines(body);
378378
const documentLanguage = (await vscode.workspace.openTextDocument(this.parent.uri)).languageId;
379-
const replacerRegex = new RegExp(`([^\[\`]|^)@(${ALLOWED_USERS})`, 'g');
379+
const replacerRegex = new RegExp(`([^/\[\`]|^)@(${ALLOWED_USERS})`, 'g');
380380
// Replace user
381381
const linkified = newLinesReplaced.replace(replacerRegex, (substring, _1, _2, offset) => {
382382
// Do not try to replace user if there's a code block.

0 commit comments

Comments
 (0)