Skip to content

Commit

Permalink
- ignore blanks in SVG style
Browse files Browse the repository at this point in the history
  • Loading branch information
gomi42 committed Sep 20, 2023
1 parent c69a5d3 commit a512fb4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace ShapeConverter.BusinessLogic.Parser.Svg.CSS
internal class CssStyleDeclaration
{
private static Regex styleRegex = new Regex(
@"^(?<name>[A-Za-z\-0-9]+)\s*:(?<value>[^;\}!]+)(!\s?(?<priority>important))?;?");
@"^(?<name>[A-Za-z\-0-9]+)\s*:\s*(?<value>[^;\}!]+)(!\s?(?<priority>important))?;?");

private Dictionary<string, string> styles;

Expand Down

0 comments on commit a512fb4

Please sign in to comment.