Skip to content

Commit

Permalink
fix(admin-ui): Allow period in slug
Browse files Browse the repository at this point in the history
Fixes #2304
  • Loading branch information
michaelbromley committed Jul 25, 2023
1 parent 27c9ae7 commit 7c9d110
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class CollectionDetailComponent
customFields = this.getCustomFieldConfig('Collection');
detailForm = this.formBuilder.group({
name: ['', Validators.required],
slug: ['', unicodePatternValidator(/^[\p{Letter}0-9_-]+$/)],
slug: ['', unicodePatternValidator(/^[\p{Letter}0-9._-]+$/)],
description: '',
visible: false,
inheritFilters: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class ProductDetailComponent
enabled: true,
name: ['', Validators.required],
autoUpdateVariantNames: true,
slug: ['', unicodePatternValidator(/^[\p{Letter}0-9_-]+$/)],
slug: ['', unicodePatternValidator(/^[\p{Letter}0-9._-]+$/)],
description: '',
facetValueIds: [[] as string[]],
customFields: this.formBuilder.group(
Expand Down

0 comments on commit 7c9d110

Please sign in to comment.