feat: Adds the ability to edit and delete custom attributes (#2982)

* feat: Adds the ability to edit and delete custom attributes

* Review fixes

* Minor fixes

* Adds specs

* Minor fixes

* Update settings.routes.js

Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
This commit is contained in:
Sivin Varghese
2021-09-13 15:56:18 +05:30
committed by GitHub
parent 571fefd7cd
commit 26a3150fd8
8 changed files with 325 additions and 42 deletions

View File

@@ -61,3 +61,10 @@ export const createPendingMessage = data => {
return pendingMessage;
};
export const convertToSlug = text => {
return text
.toLowerCase()
.replace(/[^\w ]+/g, '')
.replace(/ +/g, '_');
};