@mll-lab/js-utils 2.15.1 → 2.15.2

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.
@@ -15319,28 +15319,28 @@ function pluralize(amount, singular, plural) {
15319
15319
  function isString(value) {
15320
15320
  return typeof value === 'string';
15321
15321
  }
15322
- const isAlphanumeric = function isAlphanumeric(value) {
15322
+ function isAlphanumeric(value) {
15323
15323
  return isString(value) && /^[A-Za-z0-9]+$/.test(value);
15324
- };
15324
+ }
15325
15325
  /**
15326
15326
  * BSNR (Betriebsstättennummer) ist eine eindeutige Zuordnung von Leistungen zu dem entsprechenden Ort der Leistungserbringung ermöglicht,
15327
15327
  * für alle vertrags(zahn)ärztlichen Leistungserbringer gültig
15328
15328
  * und klar abzugrenzen vom Institutskennzeichen (IK-Nummer) eines Krankenhauses.
15329
15329
  */
15330
- const isBSNR = function isBSNR(value) {
15330
+ function isBSNR(value) {
15331
15331
  return isString(value) && /^\d{9}$/.test(value);
15332
- };
15332
+ }
15333
15333
  // Taken from https://emailregex.com
15334
15334
  const EMAIL_REGEX =
15335
15335
  // eslint-disable-next-line no-useless-escape
15336
15336
  /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
15337
- const isEmail = function isEmail(value) {
15337
+ function isEmail(value) {
15338
15338
  return isString(value) && EMAIL_REGEX.test(value);
15339
- };
15340
- const isOnlyDigits = function isOnlyDigits(value) {
15339
+ }
15340
+ function isOnlyDigits(value) {
15341
15341
  return isString(value) && /^\d+$/.test(value);
15342
- };
15343
- const isURL = function isURL(value) {
15342
+ }
15343
+ function isURL(value) {
15344
15344
  if (!isString(value)) {
15345
15345
  return false;
15346
15346
  }
@@ -15353,19 +15353,19 @@ const isURL = function isURL(value) {
15353
15353
  catch (_a) {
15354
15354
  return false;
15355
15355
  }
15356
- };
15357
- const isWord = function isWord(value) {
15356
+ }
15357
+ function isWord(value) {
15358
15358
  return isString(value) && /^[\w-]+$/.test(value);
15359
- };
15360
- const isLabId = function isLabId(value) {
15359
+ }
15360
+ function isLabId(value) {
15361
15361
  return isString(value) && /^\d{2}-\d{6}$/.test(value);
15362
- };
15363
- const isRackBarcode = function isRackBarcode(value) {
15362
+ }
15363
+ function isRackBarcode(value) {
15364
15364
  return isString(value) && /^[A-Z]{2}\d{8}$/.test(value);
15365
- };
15366
- const isNotNullish = function isNotNullish(value) {
15365
+ }
15366
+ function isNotNullish(value) {
15367
15367
  return value != null;
15368
- };
15368
+ }
15369
15369
 
15370
15370
  /**
15371
15371
  * Call an array of promises in order, waiting for each promise to resolve before calling the next.