Skip to content

[BUG] It stuck in an infinite loop when parsing specific css. #390

@greg-md

Description

@greg-md

If you run this, you will never get a response.

const juice = require('juice');
const result = juice(`<style>.my-class:not(.is-content-justification-space-between, .is-content-justification-right) {}</style>`);
console.log('result', result);

If there is only one class inside the :not(...), or if the class names are shorter - it could not be reproduced.

Node version: v10.24.1
Juice version: 8.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions