Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/convertToCase/detectCase.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ function detectCase(text) {
}

if (text.toLowerCase() === text) {
if (text.includes('_') || text.includes('-')) {
// There are no uppercase in the text, so it's one of the lower cases
// See if they're snake or kebab
if (text.includes('_')) {
Expand All @@ -21,7 +20,6 @@ function detectCase(text) {
return 'KEBAB';
}
}
}

if (text[0].toUpperCase() === text[0]) {
return 'PASCAL';
Expand Down
Loading