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 -4
View File
@@ -1,6 +1,3 @@
[
{
"format": "{x}{x}:{x}{x}:{x}{x}:{x}{x}:{x}{x}:{x}{x}",
"x": ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"]
}
{ "format": "{hex(2)}:{hex(2)}:{hex(2)}:{hex(2)}:{hex(2)}:{hex(2)}" }
]