Skip to content

Conversation

@alexanderadam
Copy link

@alexanderadam alexanderadam commented Oct 10, 2025

Hi folks,

anything, that contained a starting SVG tag (<svg) somewhere in the first characters, was identified as an SVG. This patch should make the detection a little more robust. 🤞

See issue #107 for the case of identifying JS as SVG
See issue #111 for the case of identifying CSV as SVG
See issue #125 for the case of identifying audio1.mp3 as SVG

PS: I'm looking for a new adventure in case anybody is looking to hire or work with a Ruby/Rails/Crystal dev

Before anything, that contained a starting SVG tag was identified as an SVG.
This patch should make the detection a little more robust. 🤞

See issue rails#107 for the case of identifying JS as SVG
See issue rails#111 for the case of identifying CSV as SVG
See issue rails#125 for the case of identifying audio1.mp3 as SVG
@alexanderadam alexanderadam force-pushed the fix/improve_svg_detection_issue_107 branch from d80bad5 to 631b328 Compare October 13, 2025 15:27
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.

1 participant