Skip to content

Commit

Permalink
Merge pull request #571 from bcgov/yj
Browse files Browse the repository at this point in the history
chore: enhance error text
  • Loading branch information
ychung-mot committed Aug 27, 2024
2 parents 14e403a + 393a706 commit fd3416b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/StrDss.Common/RegexInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ static RegexDefs()
{
_regexInfos = new Dictionary<string, RegexInfo>();

_regexInfos.Add(Email, new RegexInfo { Regex = @"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$", ErrorMessage = "Wrong email address" });
_regexInfos.Add(Email, new RegexInfo { Regex = @"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$", ErrorMessage = "Invalid email address format" });

_regexInfos.Add(GpsCoords, new RegexInfo { Regex = @"^\-?\d{1,5}(\.\d{1,9})?$", ErrorMessage = "Value must be a number of less than 6 digits optionally with maximum 9 decimal digits" });
_regexInfos.Add(Offset, new RegexInfo { Regex = @"^\-?\d{1,4}(\.\d{1,3})?$", ErrorMessage = "Value must be a number of less than 5 digits optionally with maximum 3 decimal digits" });
Expand Down

0 comments on commit fd3416b

Please sign in to comment.