Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 82bc1e72c6 |
@@ -26,15 +26,7 @@ namespace QuestPDF.Helpers
|
||||
|
||||
static bool IsColorValid(string color)
|
||||
{
|
||||
try
|
||||
{
|
||||
SKColor.Parse(color);
|
||||
return true;
|
||||
}
|
||||
catch
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return SKColor.TryParse(color, out _);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user