@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.mjs CHANGED
@@ -2998,11 +2998,11 @@ var extractMacro = function(expr, options) {
2998
2998
  return extracResult;
2999
2999
  };
3000
3000
  var __codeKey = (str) => {
3001
- const replaces = [` `, `-`, `/`, `,`, `'`, `&`, `.`, `(`, `)`, `{`, `}`, `@`, `\\`, `[`, `]`, `#`, `:`];
3002
- for (const k in replaces) {
3003
- str = str.replace(k, "_").trim();
3001
+ const replaces = [" ", `-`, `/`, `,`, `'`, `&`, `.`, `(`, `)`, `{`, `}`, `@`, `\\`, `[`, `]`, `#`, `:`];
3002
+ for (const k of replaces) {
3003
+ str = str.replaceAll(k, "_").trim();
3004
3004
  if (str.indexOf("__") >= 0) {
3005
- str = str.replace("__", "_");
3005
+ str = str.replaceAll("__", "_");
3006
3006
  }
3007
3007
  }
3008
3008
  if (str.startsWith("_")) {