1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-13 00:50:06 +00:00

chore: comments addressing

This commit is contained in:
Mihajlo Medjedovic
2021-10-15 12:43:22 +00:00
parent 17a7a26fc3
commit c0a4e1aa14
12 changed files with 88 additions and 62 deletions

View File

@@ -24,3 +24,7 @@ export const generateUniqueFileName = (fileName: string, extension = '') =>
new Date().getTime(),
extension
].join('')
export const addExtensionIfNotFound = (value: string, extension: string) => {
return !value.includes('.') ? `.${extension}` : ''
}