- From: Domenic Denicola <notifications@github.com>
- Date: Tue, 14 Mar 2017 10:46:43 -0700
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 14 March 2017 17:47:21 UTC
However you may find whatwg-url's former way of doing things to be simpler (no ignore0 variable):
```js
for (let i = 0; i < address.length; ++i) {
if (compressPtr === i) {
if (i === 0) {
output += "::";
} else {
output += ":";
}
i += seqResult.len - 1;
continue;
}
output += address[i].toString(16);
if (i !== address.length - 1) {
output += ":";
}
}
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/pull/268#issuecomment-286503545
Received on Tuesday, 14 March 2017 17:47:21 UTC