Skip to content

Allow creation of buffers from hex strings with a 0x-prefix

Rodrigo Muino Tomonari requested to merge github/fork/brodo/buffer-from-hex into main

Currently, Buffer.from("0xff", "hex") returns an empty buffer. I think either this should throw an error or it should create a buffer containing 0xff. I implemented the second option.

Merge request reports

Loading