Fixes #100353
This commit is contained in:
parent
748289d58c
commit
9043c26bcb
2 changed files with 8 additions and 1 deletions
|
@ -154,7 +154,7 @@ function getClassifier(): CharacterClassifier<CharacterClass> {
|
|||
if (_classifier === null) {
|
||||
_classifier = new CharacterClassifier<CharacterClass>(CharacterClass.None);
|
||||
|
||||
const FORCE_TERMINATION_CHARACTERS = ' \t<>\'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…';
|
||||
const FORCE_TERMINATION_CHARACTERS = ' \t<>\'\"、。。、,.:;‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…';
|
||||
for (let i = 0; i < FORCE_TERMINATION_CHARACTERS.length; i++) {
|
||||
_classifier.set(FORCE_TERMINATION_CHARACTERS.charCodeAt(i), CharacterClass.ForceTermination);
|
||||
}
|
||||
|
|
|
@ -223,4 +223,11 @@ suite('Editor Modes - Link Computer', () => {
|
|||
' https://foo.bar/[this is foo site] '
|
||||
);
|
||||
});
|
||||
|
||||
test('issue #100353: Link detection stops at &(double-byte)', () => {
|
||||
assertLink(
|
||||
'aa http://tree-mark.chips.jp/レーズン&ベリーミックス aa',
|
||||
' http://tree-mark.chips.jp/レーズン&ベリーミックス '
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue