Skip to content

Commit

Permalink
Fixes PR
Browse files Browse the repository at this point in the history
  • Loading branch information
hediet committed Feb 18, 2025
1 parent 943e476 commit 80b20f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vs/base/common/strings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1188,6 +1188,8 @@ const enum CodePoint {
* Combining Enclosing Keycap
*/
enclosingKeyCap = 0x20E3,

space = 0x0020,
}

export const noBreakWhitespace = '\xa0';
Expand Down Expand Up @@ -1332,7 +1334,7 @@ export class InvisibleCharacters {
public static containsInvisibleCharacter(str: string): boolean {
for (let i = 0; i < str.length; i++) {
const codePoint = str.codePointAt(i);
if (typeof codePoint === 'number' && (InvisibleCharacters.isInvisibleCharacter(codePoint) || codePoint === 20)) {
if (typeof codePoint === 'number' && (InvisibleCharacters.isInvisibleCharacter(codePoint) || codePoint === CodePoint.space)) {
return true;
}
}
Expand Down

0 comments on commit 80b20f3

Please sign in to comment.