add tests for SVG_PATTERN regex
fix bug in SVG_PATTERN not matching rules with new line char