GithubHelp home page GithubHelp logo

PRCE error handling about htmlmin HOT 5 CLOSED

voku avatar voku commented on May 26, 2024
PRCE error handling

from htmlmin.

Comments (5)

voku avatar voku commented on May 26, 2024 2

Version 4.4.9 with upstream fixes from "voku/simple_html_dom" are released.

from htmlmin.

nlemoine avatar nlemoine commented on May 26, 2024 1

Thanks for your fast feedback! 🙂 Looks like a smart solution, works for me!

from htmlmin.

voku avatar voku commented on May 26, 2024

Hi, thanks for the good bug report. :) The problem is *? here, I already had similar problems with another library here (voku/anti-xss@f8a2eef) so I added the same fix here, what do you think about it? 6d26d4f#diff-379408ffd163375efe70c39a5decbe4b7abfbea017cabe052a8b404ed969bfd4

https://regex101.com/r/7EBtDM/1
*? matches the previous token between zero and unlimited times, as few times as possible, expanding as needed (lazy)
* matches the previous token between zero and unlimited times, as many times as possible, giving back as needed (greedy)

from htmlmin.

nlemoine avatar nlemoine commented on May 26, 2024

Will you release a tag for this fix? Just so I can adjust my constraint setting in my composer.json file.

from htmlmin.

nlemoine avatar nlemoine commented on May 26, 2024

Thanks a lot!

from htmlmin.

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.