assetic icon indicating copy to clipboard operation
assetic copied to clipboard

Problem in comment regex match

Open oradwell opened this issue 9 years ago • 1 comments

@import "sprites/*.png";

/* some comment */
.this-class {
    background-color: #666;
}

Assetic\Util\CssUtils::filterCommentless() returns:

@import "sprites
.this-class {
    background-color: #666;
}

Assetic\Util\CssUtils::filterCommentless() should ignore comment start (/*) if it is inside a string

oradwell avatar Oct 02 '15 15:10 oradwell

Original regex: https://regex101.com/r/wV0aB8/6

Fixed: https://regex101.com/r/yU7rT3/5

pls review

dhopkalo avatar Jan 13 '16 23:01 dhopkalo