| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -274,10 +274,7 @@ function RtfGenerator() { | |||
| 274 | 274 | }; | |
| 275 | 275 | ||
| 276 | 276 | function toHex(number, length) { | |
| 277 | - var hex = (~~number).toString(16); | ||
| 278 | - while (hex.length < length) | ||
| 279 | - hex = `0${hex}`; | ||
| 280 | - return hex; | ||
| 277 | + return (~~number).toString(16).padStart(length, '0'); | ||
| 281 | 278 | } | |
| 282 | 279 | ||
| 283 | 280 | function rtfEscape(string) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments