@abaplint/runtime 2.0.25 → 2.0.26
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/build/src/abap_regex.js
CHANGED
|
@@ -5,7 +5,7 @@ class ABAPRegExp {
|
|
|
5
5
|
// converts from ABAP specific regex to javascript regex
|
|
6
6
|
static convert(input) {
|
|
7
7
|
let ret = input;
|
|
8
|
-
ret = input.replace(/\[\[:punct:\]\]/g, "[
|
|
8
|
+
ret = input.replace(/\[\[:punct:\]\]/g, "[\\.\\,\\-\\{\\}\\[\\]\\:\\!\\?\\(\\)\\;\\']");
|
|
9
9
|
return ret;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Packed = void 0;
|
|
4
|
+
const float_1 = require("./float");
|
|
4
5
|
class Packed {
|
|
5
6
|
constructor(input) {
|
|
6
7
|
this.value = 0;
|
|
@@ -20,6 +21,9 @@ class Packed {
|
|
|
20
21
|
else if (typeof value === "string") {
|
|
21
22
|
this.value = parseFloat(value);
|
|
22
23
|
}
|
|
24
|
+
else if (value instanceof float_1.Float) {
|
|
25
|
+
this.value = value.getRaw();
|
|
26
|
+
}
|
|
23
27
|
else {
|
|
24
28
|
this.value = value.get();
|
|
25
29
|
}
|