Skip to content
This repository has been archived by the owner on Jul 27, 2018. It is now read-only.

Commit

Permalink
fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyl18 committed Feb 20, 2018
1 parent ba9adc0 commit 915a32f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CardSharp/StringExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static string AddNewLine(this string source)

public static bool IsValidCardString(this string source)
{
return Regex.IsMatch(source, "([2-9]|10|A|王|鬼)*");
return Regex.IsMatch(source, "([2-9]|10|A|王|鬼).*");
}

public static IEnumerable<Card> ToCards(this string source)
Expand Down

0 comments on commit 915a32f

Please sign in to comment.