Skip to content

Commit fd3416b

Browse files
authored
Merge pull request #571 from bcgov/yj
chore: enhance error text
2 parents 14e403a + 393a706 commit fd3416b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/StrDss.Common/RegexInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static RegexDefs()
3535
{
3636
_regexInfos = new Dictionary<string, RegexInfo>();
3737

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

4040
_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" });
4141
_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" });

0 commit comments

Comments
 (0)