@abaplint/runtime 2.7.146 → 2.7.148
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.
|
@@ -19,8 +19,8 @@ async function unpack(source, target) {
|
|
|
19
19
|
return unpack(source, pointer);
|
|
20
20
|
}
|
|
21
21
|
if (source instanceof types_1.Character && target instanceof types_1.Character) {
|
|
22
|
-
const sourceValue = source.getTrimEnd();
|
|
23
|
-
if (/^\d+$/.test(sourceValue) === false) {
|
|
22
|
+
const sourceValue = source.getTrimEnd().trimStart();
|
|
23
|
+
if (sourceValue.length > 0 && /^\d+$/.test(sourceValue) === false) {
|
|
24
24
|
(0, throw_error_1.throwError)("CX_SY_CONVERSION_NO_NUMBER");
|
|
25
25
|
}
|
|
26
26
|
target.set(sourceValue.padStart(target.getLength(), "0"));
|