mirror of
https://github.com/sharevb/it-tools.git
synced 2026-12-06 03:05:09 +03:00
Added clarification to comment
This commit is contained in:
1 parent
91da9baed4
commit
c016ed8ba9
1 file changed
+1
-1
@@ -13,7 +13,7 @@ function toPaddedHex(num: number) {
|
||||
function toUTF8(codePoint: number) {
|
||||
const utf8String = utf8.encode(String.fromCodePoint(codePoint));
|
||||
const bytes = [...utf8String].map(c => `\\x${c.codePointAt(0)?.toString(16).toUpperCase()}`);
|
||||
return bytes.join(''); // Join the array into a single string
|
||||
return bytes.join(''); // Join the string array into a single string to fix a bug where it would otherwise join the array items with a comma
|
||||
}
|
||||
|
||||
const searchQuery = useDebouncedRef('', 250);
|
||||
|
||||
Reference in new issue
Block a user