fix maintainability issues raised by sonarqube
- Unicode-aware string methods should be used for proper character handling (typescript:S7758)
This commit is contained in:
1 file changed
+1
-1
@@ -164,7 +164,7 @@ export class ASCIILexicalTable {
|
||||
|
||||
prev += String.fromCharCode(lastCode - 1);
|
||||
while (prev.length < this.maxStrWidth) {
|
||||
prev += String.fromCharCode(this.endCode);
|
||||
prev += String.fromCodePoint(this.endCode);
|
||||
}
|
||||
return prev;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user