diff --git a/lib/content-services/src/lib/tag/tags-creator/tags-creator.component.spec.ts b/lib/content-services/src/lib/tag/tags-creator/tags-creator.component.spec.ts index 4a2c9736ba..876ee2984a 100644 --- a/lib/content-services/src/lib/tag/tags-creator/tags-creator.component.spec.ts +++ b/lib/content-services/src/lib/tag/tags-creator/tags-creator.component.spec.ts @@ -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(); diff --git a/lib/content-services/src/lib/tag/tags-creator/tags-creator.component.ts b/lib/content-services/src/lib/tag/tags-creator/tags-creator.component.ts index ef54ad14b6..41efd96eee 100644 --- a/lib/content-services/src/lib/tag/tags-creator/tags-creator.component.ts +++ b/lib/content-services/src/lib/tag/tags-creator/tags-creator.component.ts @@ -374,7 +374,7 @@ export class TagsCreatorComponent implements OnInit, OnDestroy { } private validateSpecialCharacters(tagNameControl: FormControl): TagNameControlErrors | null { - const specialSymbolsRegex = /[{}()^':"\\|<>/?]/; + const specialSymbolsRegex = /[{}()^':"\\|<>/?.*]/; return tagNameControl.value.length && specialSymbolsRegex.test(tagNameControl.value) ? { specialCharacters: true } : null; }