We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 75c9d00 + 7990f51 commit 8da60d2Copy full SHA for 8da60d2
src/utils.ts
@@ -20,6 +20,12 @@ export function sanitize(name: string): string {
20
if (name.includes('-')) {
21
return sanitized;
22
}
23
+
24
+ // if key contains at sign
25
+ if (name.includes('@')) {
26
+ return sanitized;
27
+ }
28
29
return name;
30
31
tests/utils.test.ts
@@ -19,6 +19,7 @@ describe('sanitize', () => {
19
});
it('invalid', () => {
expect(sanitize('0')).toBe("'0'");
+ expect(sanitize('@type')).toBe("'@type'");
expect(sanitize('bad-key')).toBe("'bad-key'");
0 commit comments