Skip to content

Commit

Permalink
fix: string should start with 'res/' to be valid
Browse files Browse the repository at this point in the history
  • Loading branch information
laeckerv authored and oskardudycz committed Feb 21, 2023
1 parent 8516dcc commit 7f1ee98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ public class ReservationNumber: StronglyTypedValue<string>
{
public ReservationNumber(string value) : base(value)
{
if (string.IsNullOrEmpty(value) || value.StartsWith("RES/") || value.Length <= 4)
if (string.IsNullOrEmpty(value) || !value.StartsWith("RES/") || value.Length <= 4)
throw new ArgumentOutOfRangeException(nameof(value));
}
}
Expand Down

0 comments on commit 7f1ee98

Please sign in to comment.