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

Suggestion: Avoid Encoding Non-SVG Inputs #75

Open
pirateIV opened this issue Aug 27, 2024 · 0 comments
Open

Suggestion: Avoid Encoding Non-SVG Inputs #75

pirateIV opened this issue Aug 27, 2024 · 0 comments

Comments

@pirateIV
Copy link

Suggestion

Currently, the tool encodes any input into a URL, assuming the input is always an SVG. However, there might be cases where users provides non-SVG inputs, leading to incorrect encoding.

Propesed Feature

  • Implement a check to determine if input is a valid SVG.
  • If the input is not an SVG, the tool should either:
    • Return an error message indicating the input is not an SVG.
    • Simply skip the encoding process and return the input as-is.
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

No branches or pull requests

1 participant