Skip to content

Commit 97f3cce

Browse files
Update index.js
Co-Authored-By: Kiko Beats <josefrancisco.verdu@gmail.com>
1 parent 28b9494 commit 97f3cce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = (height, width, seperator = ':') => {
66
throw new Error(`Invalid height: ${height}`)
77
}
88

9-
if (!width) {
9+
if (isNaN(Number(width))) {
1010
throw new Error(`Invalid width: ${width}`)
1111
}
1212
const [h, w] = highestFirst(height, width)

0 commit comments

Comments
 (0)