Skip to content

Chokes on certain CSS files #293

@EGreg

Description

@EGreg

How to reproduce: Try putting this in your document:

<style>
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,400,300,700);
</style>

the eatUntil() function throws "Advanced beyond end" because it doesn't find { anywhere, and as a result, the whole library aborts.

You should handle edge cases like this. Perhaps don't throw "Advanced beyond end" since "{" might not actually exist in the CSS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions