@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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendit-dev/thirdparty-adapters",
3
- "version": "0.7.9",
3
+ "version": "0.7.10",
4
4
  "description": "Third party adapters between v-cloud and other PMS/CMS providers.",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {