From e5009835bd78410cd3d0857ac1d32ed84ecc575d Mon Sep 17 00:00:00 2001 From: Jason Poon Date: Mon, 23 Jul 2018 23:53:45 -0700 Subject: [PATCH] fix: handle non-string remapped key. closes #2873 --- src/configuration/notation.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/configuration/notation.ts b/src/configuration/notation.ts index 5acf86c72..9d54a8d03 100644 --- a/src/configuration/notation.ts +++ b/src/configuration/notation.ts @@ -19,6 +19,10 @@ export class Notation { * (e.g. , , ) */ public static NormalizeKey(key: string, leaderKey: string): string { + if (typeof key !== 'string') { + return key; + } + if (!this.isSurroundedByAngleBrackets(key) && key.length > 1) { key = `<${key.toLocaleLowerCase()}>`; }