monkey-front-core 0.0.514 → 0.0.515

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.
@@ -291,23 +291,8 @@ class MonkeyEcxUtils {
291
291
  return dvCalc === dgv;
292
292
  }
293
293
  static isValidRFC(document) {
294
- const regex = /^[A-Z]{4}[0-9]{6}[A-Z0-9]{3}$/;
295
- if (!regex.test(document)) {
296
- return false;
297
- }
298
- const year = parseInt(document.substr(4, 2));
299
- const month = parseInt(document.substr(6, 2));
300
- const day = parseInt(document.substr(8, 2));
301
- if (year < 0 || year > 99) {
302
- return false;
303
- }
304
- if (month < 1 || month > 12) {
305
- return false;
306
- }
307
- if (day < 1 || day > 31) {
308
- return false;
309
- }
310
- return true;
294
+ const regex = /^[A-Z]{3,4}[0-9]{6}[A-Z0-9]{3}$/;
295
+ return regex.test(document);
311
296
  }
312
297
  static isValidUrl(txt) {
313
298
  const regex = /(https?:\/\/(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9])(:?\d*)\/?([a-z_\\/0-9\-#.]*)\??([a-z_\\/0-9\-#=&]*)/g;