Skip to content

Commit

Permalink
Merge branch 'main' of github.com:pureblazor/components
Browse files Browse the repository at this point in the history
  • Loading branch information
codymullins committed Oct 11, 2024
2 parents 8bd4a1a + 2aed86d commit 7974549
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Pure.Blazor.Components/Forms/Validators/RegexValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public override ValidationResult ExecuteValidate(string? input)
}

var match = _rx.Match(input);

return new ValidationResult(match.Success, match.Success == false ? $"{input} does not match the regular expression" : null);
var success = match.Success && match.Value.Length == input.Length;
return new ValidationResult(success, success == false ? $"{input} does not match the regular expression" : null);
}
}
}

0 comments on commit 7974549

Please sign in to comment.