Skip to content

Commit

Permalink
fix unicode character width handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ajafff committed Aug 7, 2019
1 parent b020bd1 commit 720e8d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ export function isValidIdentifier(text: string, languageVersion = ts.ScriptTarge
}

function charSize(ch: number) {
return ch > 0x10000 ? 2 : 1;
return ch >= 0x10000 ? 2 : 1;
}

/**
Expand Down

0 comments on commit 720e8d3

Please sign in to comment.