Skip to content

Commit 951202b

Browse files
committed
1 parent a93ffac commit 951202b

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

src/vs/editor/common/modes/linkComputer.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,10 @@ export class LinkComputer {
268268
// `*` terminates a link if the link began with `*`
269269
chClass = (linkBeginChCode === CharCode.Asterisk) ? CharacterClass.ForceTermination : CharacterClass.None;
270270
break;
271+
case CharCode.Pipe:
272+
// `|` terminates a link if the link began with `|`
273+
chClass = (linkBeginChCode === CharCode.Pipe) ? CharacterClass.ForceTermination : CharacterClass.None;
274+
break;
271275
default:
272276
chClass = classifier.get(chCode);
273277
}

src/vs/editor/test/common/modes/linkComputer.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,4 +209,11 @@ suite('Editor Modes - Link Computer', () => {
209209
' https://portal.azure.com '
210210
);
211211
});
212+
213+
test('issue #86358: URL wrong recognition pattern', () => {
214+
assertLink(
215+
'POST|https://portal.azure.com|2019-12-05|',
216+
' https://portal.azure.com '
217+
);
218+
});
212219
});

0 commit comments

Comments
 (0)