1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

spelling: characters

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref 2021-06-24 19:40:46 -04:00
parent 724cf7937e
commit 477dfc7300
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ describe("parseJsonPath", () => {
expect(res).toBe(".metadata.labels['kubesphere.io/alias-name']");
});
test("should convert keys with escpaped charatecrs to use indexed notation", () => {
test("should convert keys with escpaped characters to use indexed notation", () => {
const res = parseJsonPath(".metadata.labels.kubesphere\\\"io/alias-name");
expect(res).toBe(".metadata.labels['kubesphere\"io/alias-name']");

View File

@ -48,7 +48,7 @@ function convertToIndexNotation(key: string, firstItem = false) {
}
return `['${key}']`;
} else { // no illegal chracters found, do not touch
} else { // no illegal characters found, do not touch
const prefix = firstItem ? "" : ".";
return `${prefix}${key}`;