iguazio.dashboard-controls 1.0.7 → 1.0.8

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iguazio.dashboard-controls",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "main": "dist/js/iguazio.dashboard-controls.js",
5
5
  "description": "Collection of resources (such as CSS styles, fonts and images) and AngularJs 1.x components and services to share among different Iguazio repos.",
6
6
  "repository": {
@@ -200,9 +200,16 @@ such restriction.
200
200
  },
201
201
  notContainCharacters: function (chars) {
202
202
  return {
203
- name: 'notContain',
203
+ name: 'notContainCharacters',
204
204
  label: $i18next.t('common:NOT_CONTAIN', { lng: lng }) + ': ' + convertToLabel(chars),
205
- pattern: new RegExp('^[^' + convertToLabel(chars) + ']+$')
205
+ pattern: new RegExp('^[^' + convertToPattern(chars) + ']+$')
206
+ }
207
+ },
208
+ notContainString: function (string) {
209
+ return {
210
+ name: 'notContainString',
211
+ label: $i18next.t('common:NOT_CONTAIN', { lng: lng }) + ': ' + convertToLabel(string),
212
+ pattern: new RegExp('^(?!.*' + convertToPattern(string) + ').+$')
206
213
  }
207
214
  },
208
215
  maxLengthBetweenDelimiters: function (delimiter, maxLength, delimiterDescription) {
@@ -465,10 +472,9 @@ such restriction.
465
472
  dockerRegistryUrl: [
466
473
  {
467
474
  name: 'beginNot',
468
- label: $i18next.t('common:BEGIN_NOT_WITH', { lng: lng }) + ': https://',
469
- pattern: /^(?!https:\/\/)/
470
- },
471
- generateRule.notContainCharacters('/ :')
475
+ label: $i18next.t('common:BEGIN_NOT_WITH', { lng: lng }) + ': <schema>:/',
476
+ pattern: /^(?![^:/]+:\/).*/
477
+ }
472
478
  ]
473
479
  },
474
480
  clusters: {