Makes the linter happy.

This commit is contained in:
Aaron Louie 2020-01-17 16:17:03 -05:00
parent 3c40ec2c54
commit bab38a0ea8
1 changed files with 4 additions and 4 deletions

View File

@ -1,3 +1,7 @@
export const trimString = (str: string): string => {
return !str ? '' : String(str).replace(/^\W+|\W+$/gi, '');
};
export const toSnakeCase = (str: string): string => {
str = trimString(str);
return !str ? '' : String(str)
@ -5,10 +9,6 @@ export const toSnakeCase = (str: string): string => {
.toLowerCase();
};
export const trimString = (str: string): string => {
return !str ? '' : String(str).replace(/^\W+|\W+$/gi, '');
};
export const cleanUpFilename = (str: string, extension: string): string => {
const arr = trimString(str).split('.');