Express hex-shaped data with the hex() builtin instead of a hand-rolled choice

This commit is contained in:
lilleman
2026-08-27 23:18:20 +02:00
committed by lilleman-tw
parent aec0497ce5
commit af09a86e71
4 changed files with 5 additions and 11 deletions
+1 -2
View File
@@ -5,7 +5,6 @@
"o": [{ "format": "0", "weight": 3 }, { "format": "10", "weight": 4 }, { "format": "#100", "weight": 2 }]
},
{
"format": "{g}:{g}:{g}:{g}:{g}:{g}:{g}:{g}",
"g": [{ "format": "{x}{x}{x}{x}", "x": ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"] }]
"format": "{hex(4)}:{hex(4)}:{hex(4)}:{hex(4)}:{hex(4)}:{hex(4)}:{hex(4)}:{hex(4)}"
}
]