@basthon/kernel-xcas 0.72.0 → 0.72.1
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/lib/xcas-wrap.js +6 -2
- package/package.json +3 -3
package/lib/xcas-wrap.js
CHANGED
|
@@ -17,8 +17,12 @@ export class XCASWrapper {
|
|
|
17
17
|
return text.replace(/^"/, "").replace(/"$/, "");
|
|
18
18
|
}
|
|
19
19
|
latex(text) {
|
|
20
|
-
let res =
|
|
21
|
-
|
|
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
|
+
}
|
|
22
26
|
return `\\[${res}\\]`;
|
|
23
27
|
}
|
|
24
28
|
caseval(code) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basthon/kernel-xcas",
|
|
3
|
-
"version": "0.72.
|
|
3
|
+
"version": "0.72.1",
|
|
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.
|
|
28
|
+
"@basthon/kernel-base": "0.72.1",
|
|
29
29
|
"@basthon/xcas-wasm": "^0.0.6"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "371c6e2e957238a2374418f52dd0166ba6172ff8"
|
|
38
38
|
}
|