ztechno_core 0.0.64 → 0.0.65

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.
@@ -62,14 +62,14 @@ class ZTranslateService {
62
62
  while (text.includes('&#')) {
63
63
  const codeIndexStart = text.indexOf('&#');
64
64
  const first = text.substring(codeIndexStart);
65
- const codeLength = first.indexOf('') + 1;
65
+ const codeLength = first.indexOf(';') + 1;
66
66
  const code = first.substring(0, codeLength);
67
67
  if (this.codes[code] === undefined) {
68
68
  throw new Error(`Cant recognize character code="${code}"\n for text=${text}\n\n`);
69
69
  // return text
70
70
  }
71
- text = text.substring(0, codeIndexStart) + this.codes[text] + text.substring(codeIndexStart + codeLength);
72
- // text = text.replace(code, codes[text])
71
+ text = text.substring(0, codeIndexStart) + this.codes[code] + text.substring(codeIndexStart + codeLength);
72
+ // text = text.replace(code, codes[code])
73
73
  if (replaceCount++ > 1000) {
74
74
  throw new Error(`Replace Count > 1000!!! character code="${code}"\n for text=${text}\n\n`);
75
75
  // return text
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztechno_core",
3
- "version": "0.0.64",
3
+ "version": "0.0.65",
4
4
  "description": "Core files for ztechno framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",