Skip to content

Commit

Permalink
chore: Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Joshua Horton <[email protected]>
  • Loading branch information
mcdurdin and jahorton authored Jun 8, 2023
1 parent ba12a06 commit 6421a1f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions developer/src/kmc-kmw/src/compiler/javascript-strings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,10 @@ export function JavaScript_String(ch: number): string { // I2242
case 10: return '\\n';
case 13: return '\\r';
}
if(ch < 9) {
return '\\x0'+ch.toString(16).toUpperCase();
} else {
return '\\x'+ch.toString(16).toUpperCase();
}
return '\\x' + zeroPadHex(ch, 2);
}
else {
// Note: unpaired surrogates will be maintained
return String.fromCodePoint(ch);
}
}
Expand Down Expand Up @@ -776,7 +773,6 @@ function CheckStoreForInvalidFunctions(fk: KMX.KEYBOARD, key: KMX.KEY, store: KM

// Used when targeting versions prior to 10.0, before the introduction of FullContextMatch/KFCM.
function JavaScript_CompositeContextValue(fk: KMX.KEYBOARD, fkp: KMX.KEY, pwsz: string): string {
// Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
// var
// StartQuotes, Len, Cur: Integer;
// InQuotes: Boolean;
Expand Down

0 comments on commit 6421a1f

Please sign in to comment.