diff options
Diffstat (limited to 'src/ts/utils/assert.ts')
-rw-r--r-- | src/ts/utils/assert.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ts/utils/assert.ts b/src/ts/utils/assert.ts index 509590ee6..2f52c6a3b 100644 --- a/src/ts/utils/assert.ts +++ b/src/ts/utils/assert.ts @@ -3,7 +3,7 @@ import * as BigNumber from 'bignumber.js'; import Web3 = require('web3'); import {SchemaValidator} from './schema_validator'; -const HEX_REGEX = /^0x([0-9A-F]{2})*$/i; +const HEX_REGEX = /^0x[0-9A-F]*$/i; export const assert = { isBigNumber(variableName: string, value: BigNumber.BigNumber) { |