Skip to content

Commit 9e365d7

Browse files
committed
Fixes microsoft#99199: Remove NEL from the unusual line terminators regex
1 parent 2da724e commit 9e365d7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/base/common/strings.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -728,9 +728,9 @@ export function isBasicASCII(str: string): boolean {
728728
return IS_BASIC_ASCII.test(str);
729729
}
730730

731-
export const UNUSUAL_LINE_TERMINATORS = /[\u2028\u2029\u0085]/; // LINE SEPARATOR (LS), PARAGRAPH SEPARATOR (PS), NEXT LINE (NEL)
731+
export const UNUSUAL_LINE_TERMINATORS = /[\u2028\u2029]/; // LINE SEPARATOR (LS) or PARAGRAPH SEPARATOR (PS)
732732
/**
733-
* Returns true if `str` contains unusual line terminators, like LS, PS or NEL
733+
* Returns true if `str` contains unusual line terminators, like LS or PS
734734
*/
735735
export function containsUnusualLineTerminators(str: string): boolean {
736736
return UNUSUAL_LINE_TERMINATORS.test(str);

0 commit comments

Comments
 (0)