Skip to content

Commit

Permalink
fix: check string value in isUpperCase (#1542)
Browse files Browse the repository at this point in the history
* fix: check string value in isUpperCase

* Create small-shrimps-vanish.md

---------

Co-authored-by: Sami Jaber <[email protected]>
  • Loading branch information
adamdbradley and samijaber authored Sep 3, 2024
1 parent 814d171 commit 531c15c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/small-shrimps-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@builder.io/mitosis": patch
---

fix: check string value in `isUpperCase`
2 changes: 1 addition & 1 deletion packages/core/src/helpers/is-upper-case.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const isUpperCase = (str: string) => str.toUpperCase() === str;
export const isUpperCase = (str: string) => typeof str === 'string' && str.toUpperCase() === str;

0 comments on commit 531c15c

Please sign in to comment.