Skip to content

Commit

Permalink
fix guid validate for privot
Browse files Browse the repository at this point in the history
  • Loading branch information
VillSource committed Mar 2, 2024
1 parent 1bdf32b commit 5399ae9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Src/Presentation/ArticleService/Dtos/ArticlesQueryDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ public class ArticlesQueryDto
public int Take { set; get; } = 10;

[FromQuery(Name ="from")]
[RegularExpression("""^[<>][A-Za-z0-9_\-\+\/]{22,24}$""", ErrorMessage = "Start with '<' for get befor, '>' for after; example '<C95KV0xhcUuD1s5HHWM4uA' or '>C95KV0xhcUuD1s5HHWM4uA'")]
//[RegularExpression("""^[<>][A-Za-z0-9_\-\+\/]{22,24}$""", ErrorMessage = "Start with '<' for get befor, '>' for after; example '<C95KV0xhcUuD1s5HHWM4uA' or '>C95KV0xhcUuD1s5HHWM4uA'")]
[RegularExpression("""^[<>].+$""", ErrorMessage = "Start with '<' for get befor, '>' for after; example '<C95KV0xhcUuD1s5HHWM4uA' or '>C95KV0xhcUuD1s5HHWM4uA'")]
public string? Privot { set; get; }

[FromQuery(Name ="of")]
Expand Down

0 comments on commit 5399ae9

Please sign in to comment.