Skip to content

Commit

Permalink
#22094 fix noHtml-regex-invalidates-period-on-contentType-title (#1980)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredo-dotcms authored May 11, 2022
1 parent 2a433ae commit 9c25f86
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<p-dropdown
appendTo="body"
[style]="{ width: '125px' }"
[options]="regexCheckTempletes"
[options]="regexCheckTemplates"
(onChange)="templateSelect($event)"
[formControlName]="property.name"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ describe('RegexCheckPropertyComponent', () => {

const pDropDown: DebugElement = fixture.debugElement.query(By.css('p-dropdown'));
expect(pDropDown).not.toBeNull();
expect(comp.regexCheckTempletes).toBe(pDropDown.componentInstance.options);
expect(comp.regexCheckTemplates).toBe(pDropDown.componentInstance.options);
});

it('should change the input value', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ export interface RegexTemplate {
styleUrls: ['./regex-check-property.component.scss']
})
export class RegexCheckPropertyComponent implements OnInit {
regexCheckTempletes: RegexTemplate[] = [];
regexCheckTemplates: RegexTemplate[] = [];

property: FieldProperty;
group: FormGroup;

constructor(private dotMessageService: DotMessageService) {}

ngOnInit() {
this.regexCheckTempletes = [
this.regexCheckTemplates = [
{
label: this.dotMessageService.get(
'contenttypes.field.properties.validation_regex.values.select'
Expand Down Expand Up @@ -76,7 +76,7 @@ export class RegexCheckPropertyComponent implements OnInit {
label: this.dotMessageService.get(
'contenttypes.field.properties.validation_regex.values.no_html'
),
value: '[^(<[.\n]+>)]*'
value: '^[^<><|>]+$'
}
];
}
Expand Down

0 comments on commit 9c25f86

Please sign in to comment.