indutny / indutny/node-ip

isV6Format returns "true" when passed a blank string.

Open
#80 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.5k
Forks
228
PR merge metrics
No merged PRs in 30d

Description

Hi, when I pass a blank string to `isv6Format()` it returns `true`, but a blank string is not a valid IPv6 address.

```javascript
const ip = require("ip");
ip.isV6Format(""); // true
```
Is this intended behaviour?

Thanks,

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the isV6Format() entry point and reproduce its behavior with a blank string. Confirm the intended result for blank input, then make the behavior consistent with whether the input is a valid IPv6 address and verify that the reported example no longer returns true.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
networking
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.