Skip to content

Commit 97d5caf

Browse files
committed
Fixed error in isFirstLetterCapital logic
1 parent 9aad3d4 commit 97d5caf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { isServer } from 'solid-js/web';
22

33
export const isFirstLetterCapital = (string: string): boolean => {
44
const first = string.charAt(0);
5-
return first === first.toLowerCase();
5+
return first !== first.toLowerCase();
66
};
77

88
export const capitalizeFirstLetter = (

0 commit comments

Comments
 (0)