Skip to content

Commit

Permalink
Merge pull request #1026 from multiversx/FixRegexExpression
Browse files Browse the repository at this point in the history
Update regex for time on analytics
  • Loading branch information
danielailie authored Sep 18, 2023
2 parents 0cd328f + 371ae1b commit bd80ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/analytics/models/analytics-args.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ export class AnalyticsArgs {
metric: string;
@IsOptional()
@Field({ nullable: true })
@Matches(new RegExp('[1-60][s,m,h,d]'))
@Matches(new RegExp('^(?:[1-9]|[1-5][0-9]|60)[s,m,h,d]$'))
time: string;
}

0 comments on commit bd80ce7

Please sign in to comment.