change the signature of Ox.pad to match Ox.truncate
This commit is contained in:
parent
24bbf95bd5
commit
a5c6747b57
10 changed files with 62 additions and 29 deletions
|
|
@ -189,7 +189,9 @@
|
|||
if (code < 128) {
|
||||
char = char in htmlEntities ? htmlEntities[char] : char;
|
||||
} else if (encodeAll) {
|
||||
char = '&#x' + Ox.pad(code.toString(16).toUpperCase(), 4) + ';';
|
||||
char = '&#x'
|
||||
+ Ox.pad(code.toString(16).toUpperCase(), 'left', 4, '0')
|
||||
+ ';';
|
||||
}
|
||||
return char;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue