-
Incident report
-
Resolution: Unresolved
-
Minor
-
None
-
5.4.1
-
Ubuntu 20.04
Steps to reproduce:
- Script Item with this function:
function strUTF16LE(input){ output = ""; for (var i = 0; i < input.length; i++) output += String.fromCharCode(input.charCodeAt(i) & 0xFF, (input.charCodeAt(i) >>> 8) & 0xFF); return output; } return strUTF16LE("abcdefg-123456789");
Result:
Only the first character (a) is returned
Expected:
The whole string (abcdefg-123456789) should be returned, as tested in Mozilla Firefox