Run prettier through everything.
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
interface File {
|
||||
name: string
|
||||
name: string
|
||||
}
|
||||
|
||||
export const guessZipFileName = (files: File[]) => {
|
||||
let parts = (files.filter(f => f.name.endsWith('.c'))[0]?.name || 'hook').split('.')
|
||||
parts = parts.length > 1 ? parts.slice(0, -1) : parts
|
||||
return parts.join('')
|
||||
let parts = (files.filter(f => f.name.endsWith('.c'))[0]?.name || 'hook').split('.')
|
||||
parts = parts.length > 1 ? parts.slice(0, -1) : parts
|
||||
return parts.join('')
|
||||
}
|
||||
|
||||
export const capitalize = (value?: string) => {
|
||||
if (!value) return '';
|
||||
if (!value) return ''
|
||||
|
||||
return value[0].toLocaleUpperCase() + value.slice(1);
|
||||
}
|
||||
return value[0].toLocaleUpperCase() + value.slice(1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user