CHE-10659 Fix the regular expression for a workspace name
Signed-off-by: Oleksii Orel <oorel@redhat.com>6.19.x
parent
8b1ffc51d9
commit
d2e7bc9eb9
|
|
@ -13,12 +13,12 @@
|
|||
required
|
||||
ng-minlength="3"
|
||||
ng-maxlength="100"
|
||||
ng-pattern="/^[A-Za-z0-9_\-\.]+$/"
|
||||
ng-pattern="/^[A-Za-z0-9]{1}[A-Za-z0-9_\-\.]+[A-Za-z0-9]{1}$/"
|
||||
custom-validator="workspaceDetailsOverviewController.isNameUnique($value)">
|
||||
<che-error-messages che-message-scope="workspace-details-settings" che-message-name="Workspace name">
|
||||
<div ng-message="pattern">The name should not contain special characters like space, dollar, etc.</div>
|
||||
<div ng-message="maxlength">The name has to be less than 101 characters long.</div>
|
||||
<div ng-message="minlength">The name has to be more than 3 characters long.</div>
|
||||
<div ng-message="pattern">The name should not contain special characters like space, dollar, etc.</div>
|
||||
<div ng-message="customValidator">This workspace name is already used.</div>
|
||||
</che-error-messages>
|
||||
</che-input-box>
|
||||
|
|
|
|||
|
|
@ -186,11 +186,6 @@ describe(`cheEditModeOverlay >`, () => {
|
|||
expect($scope.config.applyButton.action).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it(`shouldn't call a callback when 'cancelButton' is clicked >`, () => {
|
||||
cancelButtonEl.click();
|
||||
expect($scope.config.cancelButton.action).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue