improves graphql name formatting
This commit is contained in:
@@ -3,6 +3,10 @@ const formatName = (string) => {
|
||||
.replace(/\./g, '_')
|
||||
.replace(/-|\//g, '_')
|
||||
.replace(/\+/g, '_')
|
||||
.replace(/,/g, '_')
|
||||
.replace(/\(/g, '_')
|
||||
.replace(/\)/g, '_')
|
||||
.replace(/'/g, '_')
|
||||
.replace(/ /g, '');
|
||||
|
||||
return formatted;
|
||||
|
||||
Reference in New Issue
Block a user