Skip to content

feat: support xml+svg and svg - #119

Open
Blooym wants to merge 1 commit into
bojand:masterfrom
Blooym:svg-detection
Open

feat: support xml+svg and svg#119
Blooym wants to merge 1 commit into
bojand:masterfrom
Blooym:svg-detection

Conversation

@Blooym

@Blooym Blooym commented Mar 12, 2026

Copy link
Copy Markdown

This PR is a more complete implementation of SVG support that supersedes #115 and #73.

This matcher is correctly able to detect both and + combinations by reading ahead in the buffer by up to 256 bytes when an xml tag is detected - this read-ahead amount should be low enough to avoid false detections in other file formats while still detecting XML+SVG correctly.

Two sample files have been been added alongside test cases for both SVG detections and for ensuring text-based XML still works as expected by excluding SVG.

resolves #60

@Blooym Blooym mentioned this pull request Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SVG finder

1 participant