-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IndexOutOfRange exception in StringExtensions.TrimFirstLine #73
Comments
Can you provide any detail on what was being parsed? There's not enough detail here to understand what happened. |
Well, I was testing different inputs and it was failing like that on latest released version on empty string (string.Empty).
|
Looks like #64 tried to fix the same issue, but introduced this error. |
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 |
Looking into it. |
The text was updated successfully, but these errors were encountered: