fix: render binary values as hex (#465)

This commit is contained in:
vvrf
2026-05-26 22:46:00 +08:00
committed by GitHub
parent 660ed3002f
commit 3a595c8efb
9 changed files with 128 additions and 29 deletions
+4 -1
View File
@@ -14,7 +14,10 @@ export const BINARY_TYPES = new Set([
]);
export function isBinaryType(dataType: string): boolean {
const lower = dataType.toLowerCase();
const lower = dataType
.toLowerCase()
.replace(/\s*\([^)]*\)\s*$/, "")
.trim();
return BINARY_TYPES.has(lower);
}