'Change IP format' operation now uses the correct arguments. Fixes #332

This commit is contained in:
n1474335 2018-08-19 22:58:31 +01:00
parent e11bb38625
commit 5bcdd99870
2 changed files with 6 additions and 4 deletions

View file

@ -333,7 +333,7 @@ class Utils {
* Accepts hex, Base64, UTF8 and Latin1 strings.
*
* @param {string} str
* @param {string} type - One of "Hex", "Base64", "UTF8" or "Latin1"
* @param {string} type - One of "Hex", "Decimal", "Base64", "UTF8" or "Latin1"
* @returns {string}
*
* @example
@ -350,6 +350,8 @@ class Utils {
switch (type.toLowerCase()) {
case "hex":
return Utils.byteArrayToChars(fromHex(str));
case "decimal":
return Utils.byteArrayToChars(fromDecimal(str));
case "base64":
return Utils.byteArrayToChars(fromBase64(str, null, "byteArray"));
case "utf8":