We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2da724e commit 9e365d7Copy full SHA for 9e365d7
1 file changed
src/vs/base/common/strings.ts
@@ -728,9 +728,9 @@ export function isBasicASCII(str: string): boolean {
728
return IS_BASIC_ASCII.test(str);
729
}
730
731
-export const UNUSUAL_LINE_TERMINATORS = /[\u2028\u2029\u0085]/; // LINE SEPARATOR (LS), PARAGRAPH SEPARATOR (PS), NEXT LINE (NEL)
+export const UNUSUAL_LINE_TERMINATORS = /[\u2028\u2029]/; // LINE SEPARATOR (LS) or PARAGRAPH SEPARATOR (PS)
732
/**
733
- * Returns true if `str` contains unusual line terminators, like LS, PS or NEL
+ * Returns true if `str` contains unusual line terminators, like LS or PS
734
*/
735
export function containsUnusualLineTerminators(str: string): boolean {
736
return UNUSUAL_LINE_TERMINATORS.test(str);
0 commit comments