diff --git a/src/app/shared/components/filters-list/searchbar/searchbar.component.ts b/src/app/shared/components/filters-list/searchbar/searchbar.component.ts index 3c7afbc64..0d5042423 100644 --- a/src/app/shared/components/filters-list/searchbar/searchbar.component.ts +++ b/src/app/shared/components/filters-list/searchbar/searchbar.component.ts @@ -87,7 +87,7 @@ export class SearchbarComponent implements OnInit, OnDestroy { } public handleInvalidCharacter(value: string): void { - const validValue = value?.replace(/[^A-Za-zА-Яа-яІіЇїЄєҐґ0-9`.,№"\'\s]/g, ''); + const validValue = value?.replace(/[^A-Za-zА-Яа-яІіЇїЄєҐґ0-9`.,№"'\s]/g, ''); if (validValue !== value) { this.searchValueFormControl.setValue(validValue); this.invalidCharacterDetected.emit(); diff --git a/src/app/shared/constants/regex-constants.ts b/src/app/shared/constants/regex-constants.ts index 77d34a9b4..cc18d0446 100644 --- a/src/app/shared/constants/regex-constants.ts +++ b/src/app/shared/constants/regex-constants.ts @@ -38,4 +38,4 @@ export const SECTION_NAME_REGEX: RegExp = /^(?!`)(?!\^)(?!_)(?!\[)(?!])(?!\\)[А export const MUST_CONTAIN_LETTERS: RegExp = /[a-zA-ZА-ЯЄІЇҐа-яґєії]/; // Regex for searchbar -export const SEARCHBAR_REGEX: RegExp = /^[A-Za-zА-Яа-яІіЇїЄєҐґ0-9`.,№"\'\\s]*$/; +export const SEARCHBAR_REGEX: RegExp = /^[A-Za-zА-Яа-яІіЇїЄєҐґ0-9`.,№"'\\s]*$/;