Giter Club home page Giter Club logo

Comments (7)

tomByrer avatar tomByrer commented on July 20, 2024

Did you turn on conditionals?
Seems the RegEx should pick it up.

from minimize.

pisandelli avatar pisandelli commented on July 20, 2024

Sure... conditionals:true =)
Everything works fine... except conditionals.. =/

Maybe some cache in node?

2014-04-08 14:19 GMT-03:00 tomByrer [email protected]:

Did you turn on conditionals https://github.com/Moveo/minimize#usage?
Seems the RegExhttps://github.com/Moveo/minimize/blob/master/lib/helpers.js#L12should pick it up.

Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-39875985
.

Pedro Pisandelli

from minimize.

Swaagie avatar Swaagie commented on July 20, 2024

Taking a look at this now, perhaps the regexp is too strict or has some flaw

from minimize.

pisandelli avatar pisandelli commented on July 20, 2024

Hi @Swaagie ... yes.. maybe =(
I tried to built another regex with a great help from regex101.com:

\[if.*IE[\s\d]*\]\>(?:[^\n]*(\n*))+\<!\[endif\]/gi

It validated my code in many circumstances, like:

[if lt IE10]>
<p class="browsehappy">
   You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.
</p>
<![endif]

and

[if lt IE 10]><p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p><![endif]

Do you think it´s ok, or can we have a more "lean" regex?

Regards,

from minimize.

tomByrer avatar tomByrer commented on July 20, 2024

It might be OK, or perhaps this tester is not working: http://regexr.com/38m9d
Also, is lowercase ie in conditionals OK? IIRC I used lower-case, but all examples use upper.

from minimize.

Swaagie avatar Swaagie commented on July 20, 2024

nasty regexes, currently the RegExp are stored in a var, so once it executes the result is stored. The next time you execute it again it will fail. Pushing fix in a few minutes.

from minimize.

pisandelli avatar pisandelli commented on July 20, 2024

Awesome!
I´ll test it soon!

Thanks guys!

from minimize.

Related Issues (20)

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.