From b2e147ffd3b1867bd8ce77037eb7ae9b1ead0695 Mon Sep 17 00:00:00 2001 From: Timo Erdelt Date: Thu, 21 Mar 2024 12:20:21 +0100 Subject: [PATCH] refactor: adjust contractAddress and microBlock hash pattern --- src/dto.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dto.ts b/src/dto.ts index 63c560b..7e2afec 100644 --- a/src/dto.ts +++ b/src/dto.ts @@ -1,9 +1,11 @@ import { ApiProperty } from '@nestjs/swagger'; -export const contractPattern = 'ct_([1-9a-zA-Z]){49,50}'; +export const contractPattern = + 'ct_([23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnpqrstuvwxyz]){49,50}'; export const bigNumberPattern = '[1-9]+'; export const microBlockTimePattern = '[1-9]{13}'; -export const microBlockHashPattern = 'mh_([1-9a-zA-Z]){49,50}'; +export const microBlockHashPattern = + 'mh_([23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnpqrstuvwxyz]){49,50}'; export const pairAddressPropertyOptions = { pattern: contractPattern,