@vendit-dev/thirdparty-adapters 0.7.9 → 0.7.10
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.
|
@@ -159,6 +159,10 @@ var formattedPaxCountText = function (roomInformation, genderDivision) {
|
|
|
159
159
|
exports.formattedPaxCountText = formattedPaxCountText;
|
|
160
160
|
function formatPhoneNumber(text) {
|
|
161
161
|
var onlyNumberText = text === null || text === void 0 ? void 0 : text.replace(/[^0-9]/g, '');
|
|
162
|
+
var safeNumberRegex = /^050{1}[0-9]{8}$/;
|
|
163
|
+
if (safeNumberRegex.test(onlyNumberText || '')) {
|
|
164
|
+
return onlyNumberText;
|
|
165
|
+
}
|
|
162
166
|
return onlyNumberText ? "010".concat(onlyNumberText.slice(-8)) : '';
|
|
163
167
|
}
|
|
164
168
|
var makePaymentInfo = function (_a) {
|