Commit 41f88b4
committed
fix(cast): correct boolify function to handle string conversions properly
- Fix boolify returning false instead of default for non-boolean strings
- Add support for '1' and '0' string conversions
- Strings 'true'/'1' convert to true
- Strings 'false'/'0' convert to false
- Other strings fallback to default value1 parent 9d47088 commit 41f88b4
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | | - | |
101 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
102 | 106 | | |
103 | 107 | | |
0 commit comments