Fixed errors

This commit is contained in:
Michael Rowley 2021-12-30 16:09:59 +00:00
parent 680650f86c
commit 3326329c29

View file

@ -396,11 +396,11 @@ export function strToIpv6(ipStr, retArr=true) {
* expandIpv6("5555:126f::0001"); * expandIpv6("5555:126f::0001");
*/ */
export function expandIpv6(ipStr) { export function expandIpv6(ipStr) {
const padHex = function(ipStr){ const padHex = function (ipStr) {
if (ipStr.length === 39) { if (ipStr.length === 39) {
return ipStr; return ipStr;
} }
const blockArray = ipStr.split(':'); const blockArray = ipStr.split(":");
let reconstructed = ""; let reconstructed = "";
blockArray.forEach((a) => { blockArray.forEach((a) => {
for (let i = a.length; i < 4; i++) { for (let i = a.length; i < 4; i++) {