@vdhewei/xlsx-template-lib 1.3.3 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3076,11 +3076,11 @@ var extractMacro = function(expr, options) {
|
|
|
3076
3076
|
return extracResult;
|
|
3077
3077
|
};
|
|
3078
3078
|
var __codeKey = (str) => {
|
|
3079
|
-
const replaces = [
|
|
3080
|
-
for (const k
|
|
3081
|
-
str = str.
|
|
3079
|
+
const replaces = [" ", `-`, `/`, `,`, `'`, `&`, `.`, `(`, `)`, `{`, `}`, `@`, `\\`, `[`, `]`, `#`, `:`];
|
|
3080
|
+
for (const k of replaces) {
|
|
3081
|
+
str = str.replaceAll(k, "_").trim();
|
|
3082
3082
|
if (str.indexOf("__") >= 0) {
|
|
3083
|
-
str = str.
|
|
3083
|
+
str = str.replaceAll("__", "_");
|
|
3084
3084
|
}
|
|
3085
3085
|
}
|
|
3086
3086
|
if (str.startsWith("_")) {
|