Giter VIP home page Giter VIP logo

Comments (5)

MaceWindu avatar MaceWindu commented on August 15, 2024 1

Well, I was testing different inputs and it was failing like that on latest released version on empty string (string.Empty).
On current code base it doesn't fail due to some other changes since last release, so I have no inputs to reproduce it now using parser. But you still can reproduce it using isolated test for this extension method (and TrimLastLine):

new StringBuilder("\r\n").TrimLastLine();
new StringBuilder("\r\n").TrimFirstLine();

from excss.

TylerBrinks avatar TylerBrinks commented on August 15, 2024

Can you provide any detail on what was being parsed? There's not enough detail here to understand what happened.

from excss.

MaceWindu avatar MaceWindu commented on August 15, 2024

Looks like #64 tried to fix the same issue, but introduced this error.

from excss.

1nTheZ0ne avatar 1nTheZ0ne commented on August 15, 2024

I can confirm that this exception is being thrown when the input string is empty, resulting in every collection in ExCSS.StyleSheet having a count of zero.

var parser = new ExCSS.Parser();
var stylesheet = parser.Parse(string.Empty);
var css = stylesheet.ToString(true); // throws IndexOutOfRangeException

from excss.

TylerBrinks avatar TylerBrinks commented on August 15, 2024

Looking into it.

from excss.

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.