diff --git a/index.js b/index.js index 88a0d0a..2ec63c7 100644 --- a/index.js +++ b/index.js @@ -394,13 +394,10 @@ function pdecode (str, hex) { */ function pencode (char) { - var hex = String(char) + return '%' + String(char) .charCodeAt(0) .toString(16) .toUpperCase() - return hex.length === 1 - ? '%0' + hex - : '%' + hex } /**