@descope/web-components-ui 1.0.401 → 1.0.402

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.
@@ -11330,6 +11330,14 @@ const multiSelectComboBoxMixin = (superclass) =>
11330
11330
  setGetValidity() {
11331
11331
  // eslint-disable-next-line func-names
11332
11332
  this.getValidity = function () {
11333
+ if (this.pattern) {
11334
+ const patternRegex = new RegExp(this.pattern);
11335
+ if (this.value.some((val) => !patternRegex.test(val)))
11336
+ return {
11337
+ patternMismatch: true,
11338
+ };
11339
+ }
11340
+
11333
11341
  if (this.isRequired && !this.value.length) {
11334
11342
  return {
11335
11343
  valueMissing: true,