monkey-front-core 0.0.579 → 0.0.581

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.
@@ -157,6 +157,8 @@ class MonkeyEcxUtils {
157
157
  return 'RUT';
158
158
  if (country === 'mx')
159
159
  return 'RFC';
160
+ if (country === 'us')
161
+ return 'EIN';
160
162
  return doc.length <= 11 ? 'CPF' : 'CNPJ';
161
163
  }
162
164
  static getDocumentMask(type, country = '') {
@@ -202,6 +204,9 @@ class MonkeyEcxUtils {
202
204
  formated = doc.replace(/^(\d{1,2})(\d{3})(\d{3})(\w{1})$/, '$1.$2.$3-$4');
203
205
  return `${formated}`;
204
206
  }
207
+ if (country === 'us') {
208
+ return doc;
209
+ }
205
210
  if (doc.length === 14) {
206
211
  formated = doc
207
212
  .replace(/^(\d{2})(\d)/, '$1.$2')