theprogrammablemind 7.5.8-beta.80 → 7.5.8-beta.82

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/config.js +4 -4
package/package.json CHANGED
@@ -64,6 +64,6 @@
64
64
  "json-stable-stringify": "^1.0.1",
65
65
  "node-fetch": "^2.6.1"
66
66
  },
67
- "version": "7.5.8-beta.80",
67
+ "version": "7.5.8-beta.82",
68
68
  "license": "ISC"
69
69
  }
package/src/config.js CHANGED
@@ -994,15 +994,15 @@ class Config {
994
994
  config.generators = (config.generators || []).map((generator) => {
995
995
  generator = {...generator}
996
996
  delete generator.where
997
- generator.match = generator.match.toString()
998
- generator.apply = generator.apply.toString()
997
+ generator.match = generator.match.toString().replace(/(\r\n|\n|\r| )/gm, "");
998
+ generator.apply = generator.apply.toString().replace(/(\r\n|\n|\r| )/gm, "");
999
999
  return generator
1000
1000
  })
1001
1001
  config.semantics = (config.semantics || []).map((semantic) => {
1002
1002
  semantic = {...semantic}
1003
1003
  delete semantic.where
1004
- semantic.match = semantic.match.toString()
1005
- semantic.apply = semantic.apply.toString()
1004
+ semantic.match = semantic.match.toString().replace(/(\r\n|\n|\r| )/gm, "");
1005
+ semantic.apply = semantic.apply.toString().replace(/(\r\n|\n|\r| )/gm, "");
1006
1006
  return semantic
1007
1007
  })
1008
1008
  }