Makes the linter happy.
This commit is contained in:
parent
3c40ec2c54
commit
bab38a0ea8
|
@ -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('.');
|
||||
|
||||
|
|
Loading…
Reference in New Issue