diff options
author | Fabio Berger <me@fabioberger.com> | 2018-05-24 08:28:17 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-05-24 08:28:17 +0800 |
commit | 59890f2c832a99372a3cdc423a23a4769f214fdc (patch) | |
tree | cecde7a1ca4d60db49e1f32e76a243a7d2c2b80d /packages/json-schemas/schemas | |
parent | 2c70162beed505bfccb4acf154d3a693f9a5ce7f (diff) | |
download | dexon-0x-contracts-59890f2c832a99372a3cdc423a23a4769f214fdc.tar.gz dexon-0x-contracts-59890f2c832a99372a3cdc423a23a4769f214fdc.tar.zst dexon-0x-contracts-59890f2c832a99372a3cdc423a23a4769f214fdc.zip |
Fix Hex regex and tests
Diffstat (limited to 'packages/json-schemas/schemas')
-rw-r--r-- | packages/json-schemas/schemas/basic_type_schemas.ts | 2 |
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 8430b6f4a..2cf32b384 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]', + pattern: '^0x([0-9a-f][0-9a-f])*$', }; export const numberSchema = { |