Skip to content
This repository was archived by the owner on Aug 6, 2021. It is now read-only.
This repository was archived by the owner on Aug 6, 2021. It is now read-only.

Bug with base64 hack #14

Description

@ts1690

Hi, tested 3 css parsing libraries before this one. Brilliant and thanks!

Found small bug regarding css parse removing a semicolon..

This css:
"background-image: url('data:image/jpeg;base64,/9j/4AAQSkZ.."

Becomes:
"background-image: url('data:image/jpegbase64,/9j/4AAQSkZ.."

The fix:

Line 181 was:

ret[ret.length - 1].value += line.trim();

Should be: (note line is trimmed already above)

ret[ret.length - 1].value += ';'+line;//.trim();

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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