@basthon/kernel-xcas 0.72.3 → 0.72.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.
Files changed (2) hide show
  1. package/lib/xcas-wrap.js +2 -6
  2. package/package.json +3 -3
package/lib/xcas-wrap.js CHANGED
@@ -17,12 +17,8 @@ export class XCASWrapper {
17
17
  return text.replace(/^"/, "").replace(/"$/, "");
18
18
  }
19
19
  latex(text) {
20
- let res = text;
21
- // FIXME: quoting seems buggy on floats @parisse will check this
22
- if (!/^[-+]?\d*\.?\d+$/.test(res)) {
23
- res = this._caseval(`latex(quote(${res}))`);
24
- res = this.unquote(res);
25
- }
20
+ let res = this._caseval(`latex(quote(${text}))`);
21
+ res = this.unquote(res);
26
22
  return `\\[${res}\\]`;
27
23
  }
28
24
  caseval(code) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basthon/kernel-xcas",
3
- "version": "0.72.3",
3
+ "version": "0.72.4",
4
4
  "description": "Basthon - XCAS Kernel",
5
5
  "homepage": "https://basthon.fr",
6
6
  "bugs": {
@@ -25,7 +25,7 @@
25
25
  "clean": "rm -rf lib/"
26
26
  },
27
27
  "dependencies": {
28
- "@basthon/kernel-base": "0.72.3",
28
+ "@basthon/kernel-base": "0.72.4",
29
29
  "@basthon/xcas-wasm": "^0.1.1"
30
30
  },
31
31
  "devDependencies": {
@@ -34,5 +34,5 @@
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "gitHead": "b05830c0223893bea03249bc3d52965eb9ad9aed"
37
+ "gitHead": "5e781418c72eab554937c7f8a6ced2a7ad109ecf"
38
38
  }