Express hex-shaped data with the hex() builtin instead of a hand-rolled choice
This commit is contained in:
+1
-4
@@ -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)}" }
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user