first commit
This commit is contained in:
@@ -0,0 +1 @@
|
||||
export * from './remove-special-character.utils';
|
||||
@@ -0,0 +1,6 @@
|
||||
export function removeSpecialCharacter(text: string): string {
|
||||
return text
|
||||
.normalize('NFD')
|
||||
.replace(/[\u0300-\u036f]/g, '')
|
||||
.replace(/[^a-zA-Z0-9\s]/g, '');
|
||||
}
|
||||
Reference in New Issue
Block a user