mirror of https://github.com/abpframework/abp
Merge pull request #8036 from abpframework/feat/8034
Improved handling of quotes when jsonName cannot be used with dot notation in JavaScriptpull/8038/head
commit
f9185e49ad
@ -1,9 +0,0 @@
|
||||
export const shouldQuoteProp = (key: string) => {
|
||||
try {
|
||||
new Function('return {}.' + key);
|
||||
} catch (_) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
};
|
Loading…
Reference in new issue