feat(case-converter): added mocking case

This commit is contained in:
Corentin Thomasset 2023-10-31 10:43:02 +01:00
parent f5eb7a8c49
commit 7809212ed9
No known key found for this signature in database
GPG key ID: DBD997E935996158

View file

@ -73,6 +73,13 @@ const formats = computed(() => [
label: 'Snakecase:',
value: snakeCase(input.value, baseConfig),
},
{
label: 'Mockingcase:',
value: noCase(input.value, baseConfig)
.split('')
.map((char, index) => (index % 2 === 0 ? char.toUpperCase() : char.toLowerCase()))
.join(''),
},
]);
const inputLabelAlignmentConfig = {