Sign in
apache
/
echarts-doc
/
17aaeb2755ed0ee560aa7277b41d4da87ce9c253
/
.
/
src
/
shared.js
blob: 8c88dbee339dc241cff389917cdf4092673beee2 [
file
] [
log
] [
blame
]
// Shared function in both client and toolchain.
module
.
exports
.
getDocJSONPVarNname
=
function
(
path
)
{
const
prefix
=
'__EC_DOC_'
;
path
=
path
.
replace
(
/\.js$/
,
''
)
.
replace
(
/\.json$/
,
''
)
.
replace
(
/[-.\/]/
g
,
'_'
);
return
prefix
+
path
;
}