We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
fromCodePoint
1 parent d2915f0 commit b8f2888Copy full SHA for b8f2888
1 file changed
packages/shared/src/lib/flows/flow-helper.ts
@@ -47,7 +47,7 @@ const actionSchemaValidator = TypeCompiler.Compile(SingleActionSchema);
47
const triggerSchemaValidation = TypeCompiler.Compile(TriggerWithOptionalId);
48
49
const ALPHABET_LENGTH = 26;
50
-const A_CHAR_CODE = 'a'.charCodeAt(0);
+const A_CODE_POINT = 97;
51
52
export function buildBlockActionKey(
53
blockName: string,
@@ -1104,7 +1104,8 @@ function indexToAlphabetical(index: number): string {
1104
let result = '';
1105
while (n > 0) {
1106
n--;
1107
- result = String.fromCharCode(A_CHAR_CODE + (n % ALPHABET_LENGTH)) + result;
+ result =
1108
+ String.fromCodePoint(A_CODE_POINT + (n % ALPHABET_LENGTH)) + result;
1109
n = Math.floor(n / ALPHABET_LENGTH);
1110
}
1111
return result;
0 commit comments