aboutsummaryrefslogtreecommitdiffstats
path: root/packages/json-schemas/schemas
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-05-24 08:36:34 +0800
committerFabio Berger <me@fabioberger.com>2018-05-24 08:36:34 +0800
commit3ec05bb5d894d6c1f430e8fdeec2821f08328970 (patch)
tree093513ca0ea934e45ad34f91734ae3474235eac7 /packages/json-schemas/schemas
parent59890f2c832a99372a3cdc423a23a4769f214fdc (diff)
downloaddexon-sol-tools-3ec05bb5d894d6c1f430e8fdeec2821f08328970.tar
dexon-sol-tools-3ec05bb5d894d6c1f430e8fdeec2821f08328970.tar.gz
dexon-sol-tools-3ec05bb5d894d6c1f430e8fdeec2821f08328970.tar.bz2
dexon-sol-tools-3ec05bb5d894d6c1f430e8fdeec2821f08328970.tar.lz
dexon-sol-tools-3ec05bb5d894d6c1f430e8fdeec2821f08328970.tar.xz
dexon-sol-tools-3ec05bb5d894d6c1f430e8fdeec2821f08328970.tar.zst
dexon-sol-tools-3ec05bb5d894d6c1f430e8fdeec2821f08328970.zip
Force hex to have at least two hex values after the prefix, but it could be two zeros
Diffstat (limited to 'packages/json-schemas/schemas')
-rw-r--r--packages/json-schemas/schemas/basic_type_schemas.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/json-schemas/schemas/basic_type_schemas.ts b/packages/json-schemas/schemas/basic_type_schemas.ts
index 2cf32b384..7565df9e0 100644
--- a/packages/json-schemas/schemas/basic_type_schemas.ts
+++ b/packages/json-schemas/schemas/basic_type_schemas.ts
@@ -7,7 +7,7 @@ export const addressSchema = {
export const hexSchema = {
id: '/Hex',
type: 'string',
- pattern: '^0x([0-9a-f][0-9a-f])*$',
+ pattern: '^0x([0-9a-f][0-9a-f])+$',
};
export const numberSchema = {