@abaplint/transpiler 2.13.73 → 2.13.74
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.
|
@@ -15,7 +15,11 @@ class FieldLengthTranspiler {
|
|
|
15
15
|
}
|
|
16
16
|
else if (c instanceof core_1.Nodes.TokenNode) {
|
|
17
17
|
if (c.get() instanceof core_1.Tokens.Identifier) {
|
|
18
|
-
|
|
18
|
+
let value = c.getFirstToken().getStr();
|
|
19
|
+
if (/^0+\d+$/.test(value)) {
|
|
20
|
+
value = value.replace(/^0+/, "") || "0";
|
|
21
|
+
}
|
|
22
|
+
ret += value;
|
|
19
23
|
}
|
|
20
24
|
}
|
|
21
25
|
}
|
|
@@ -15,7 +15,11 @@ class FieldOffsetTranspiler {
|
|
|
15
15
|
}
|
|
16
16
|
else if (c instanceof core_1.Nodes.TokenNode) {
|
|
17
17
|
if (c.get() instanceof core_1.Tokens.Identifier) {
|
|
18
|
-
|
|
18
|
+
let value = c.getFirstToken().getStr().toLowerCase();
|
|
19
|
+
if (/^0+\d+$/.test(value)) {
|
|
20
|
+
value = value.replace(/^0+/, "") || "0";
|
|
21
|
+
}
|
|
22
|
+
ret += value;
|
|
19
23
|
}
|
|
20
24
|
}
|
|
21
25
|
}
|