Git Product home page Git Product logo

svg-to-inline's Introduction

Hi there,

I'm a Front-end Engineer with 15+ years of experience developing web applications with UX and UI-oriented interfaces. My graphic design degree gave me valuable knowledge that guided my work as a Front-end.

I've worked on multiple projects and companies where I had the opportunity to explore multiple skills, technologies, platforms, and methodologies.

My experience goes from simple web pages and npm libraries to complex single-page applications and hybrid mobile and desktop apps. A long time working with agile teams delivering high-end products.

Open-source contributor. ❤️

tiagoporto.com github NPM speakerdeck

Tiago Porto's github stats

svg-to-inline's People

Contributors

dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

svg-to-inline's Issues

Can't inline SVG files when their <svg> tags have underscores

The SVGs we export from Illustrator often have id attributes in their <svg> tags like <svg id="Layer_1", and the plugin isn't able to inline these into a page because the regex that finds the <svg> tag doesn't allow underscores.

So I think this will fix it:

Original regex:
request.svgTag = request.element.match(/<svg[\w\s\t\n:="\\'\/.#-]+>/g);

New regex:
request.svgTag = request.element.match(/<svg[\w\s\t\n:="\\'\/.#-_]+>/g);

However, please see tiagoporto/jquery-svg-to-inline#18 (comment)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.