You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2020/06/14 07:34:58 UTC
[incubator-echarts-doc] branch live-example updated: remove quoter
in key after json stringify
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch live-example
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-doc.git
The following commit(s) were added to refs/heads/live-example by this push:
new b637746 remove quoter in key after json stringify
b637746 is described below
commit b637746eac98a9ba51b4d8c53afe72e3a4709bd2
Author: pissang <bm...@gmail.com>
AuthorDate: Sun Jun 14 15:34:46 2020 +0800
remove quoter in key after json stringify
---
src/components/LiveExample.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/LiveExample.vue b/src/components/LiveExample.vue
index 8f5a636..e4252aa 100644
--- a/src/components/LiveExample.vue
+++ b/src/components/LiveExample.vue
@@ -110,7 +110,7 @@ export default {
},
formattedOptionCodeStr() {
- return beautify.js(this.optionCodeStr);
+ return beautify.js(this.optionCodeStr.replace(/"(\w+)"\s*:/g, '$1:'));
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org