Comments (7)
Did you turn on conditionals?
Seems the RegEx should pick it up.
from minimize.
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.
Taking a look at this now, perhaps the regexp is too strict or has some flaw
from minimize.
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.
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.
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.
Awesome!
I´ll test it soon!
Thanks guys!
from minimize.
Related Issues (20)
- An in-range update of cli-color is breaking the build 🚨 HOT 1
- An in-range update of uuid is breaking the build 🚨 HOT 1
- HTML Attribute Contenteditable Removed By Minimize
- HTML minification eats up spaces between inline elements HOT 3
- Maximum call stack size exceeded HOT 1
- Empty attributes are assigned blank values HOT 4
- This is beyond the scope of this project. NO, IT'S NOT HOT 3
- Django templates error HOT 8
- html tags are autoclosed within a single html file HOT 2
- Keep case HOT 1
- Empty space in attribute HOT 1
- Stripping off extra HTML tags HOT 4
- Minify inline JS - Package link broken? HOT 7
- minifying all HTML files recursively in folder HOT 1
- SSI only supports #includes
- Attribut draggable is no redundant attribute HOT 1
- Feat: remove development code
- Track elements are not considered void elements
- Version 10 of node.js has been released
- An in-range update of htmlparser2 is breaking the build 🚨 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minimize.