mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-12 09:11:37 -04:00
Minor fixes
This commit is contained in:
parent
588cd93900
commit
200fbb2360
2 changed files with 8 additions and 8 deletions
|
@ -345,7 +345,7 @@ export function ipv4ToStr(ipInt) {
|
|||
* @example
|
||||
* // returns [65280, 0, 0, 0, 0, 0, 4369, 8738]
|
||||
* strToIpv6("ff00::1111:2222");
|
||||
*
|
||||
*
|
||||
* // returns 126946n
|
||||
* strToIpv6("1:f000", false);
|
||||
*/
|
||||
|
@ -356,7 +356,6 @@ export function strToIpv6(ipStr, retArr=true) {
|
|||
ipStr = "0" + ipStr;
|
||||
}
|
||||
return BigInt("0x" + ipStr.replace(":", ""));
|
||||
return
|
||||
}
|
||||
let j = 0;
|
||||
const blocks = ipStr.split(":"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue