Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve logic for finding svg content #228

Closed
wants to merge 1 commit into from

Conversation

dr5hn
Copy link

@dr5hn dr5hn commented Mar 1, 2024

Issue

Stripping tags sometimes doesn't match the content when doing str_replace. Hence it fails applying defer functionality.

Solution

Introducing a regex extraction fixes the issue.

@dr5hn dr5hn changed the title feat: improve logic for finding svg content Improve logic for finding svg content Mar 1, 2024
@driesvints
Copy link
Member

Can you add a much more smaller svg? This is quite too much lines..

@dr5hn
Copy link
Author

dr5hn commented Mar 1, 2024

@driesvints Ok will try to compress it to smaller.

@driesvints
Copy link
Member

@dr5hn I see your force push but the SVG contents are still the same. I can't merge this in as is sorry. Can you please re-send the PR with a much smaller SVG? Thanks

@driesvints driesvints closed this Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants