From bab38a0ea83b15a7b3c57aba6c898b39e9ec98e2 Mon Sep 17 00:00:00 2001 From: Aaron Louie Date: Fri, 17 Jan 2020 16:17:03 -0500 Subject: [PATCH] Makes the linter happy. --- src/app/_util/string-clean.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/_util/string-clean.ts b/src/app/_util/string-clean.ts index 95750fa..b033f7b 100644 --- a/src/app/_util/string-clean.ts +++ b/src/app/_util/string-clean.ts @@ -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('.');