Fix spelling (#3181)

Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
This commit is contained in:
Josh SorefandJosh Soref authored and GitHub committed 2021-07-16 08:53:01 -04:00
1 parent 9903417fed
commit e87b4836be
39 files changed
+54 -54

No files matched your search

@@ -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 escaped characters to use indexed notation", () => {
const res = parseJsonPath(".metadata.labels.kubesphere\\\"io/alias-name");
expect(res).toBe(".metadata.labels['kubesphere\"io/alias-name']");
+1 -1
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}`;