mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACS-8640] - unable to create tag with certain special characters (#10139)
* [ACS-8640] [ACC] Unable to create tag with certain special characters * [ACS-8640] [ACC] Unable to create tag with certain special characters
This commit is contained in:
committed by
GitHub
parent
706428d356
commit
158baa7cc9
@@ -376,7 +376,7 @@ describe('TagsCreatorComponent', () => {
|
||||
}));
|
||||
|
||||
it('should show error for prohibited characters', fakeAsync(() => {
|
||||
typeTag('tag*"<>\\/?:|{}()^');
|
||||
typeTag('tag*"<>\\/?:|{}()^.');
|
||||
component.tagNameControl.markAsTouched();
|
||||
fixture.detectChanges();
|
||||
const error = getFirstError();
|
||||
|
@@ -374,7 +374,7 @@ export class TagsCreatorComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
private validateSpecialCharacters(tagNameControl: FormControl<string>): TagNameControlErrors | null {
|
||||
const specialSymbolsRegex = /[{}()^':"\\|<>/?]/;
|
||||
const specialSymbolsRegex = /[{}()^':"\\|<>/?.*]/;
|
||||
return tagNameControl.value.length && specialSymbolsRegex.test(tagNameControl.value) ? { specialCharacters: true } : null;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user