Skip to content
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

Problem in comment regex match #758

Open
oradwell opened this issue Oct 2, 2015 · 1 comment
Open

Problem in comment regex match #758

oradwell opened this issue Oct 2, 2015 · 1 comment
Labels

Comments

@oradwell
Copy link

oradwell commented Oct 2, 2015

@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

@stof stof added the defect label Oct 2, 2015
AlexAsh added a commit to AlexAsh/assetic that referenced this issue Oct 6, 2015
AlexAsh added a commit to AlexAsh/assetic that referenced this issue Oct 6, 2015
AlexAsh added a commit to AlexAsh/assetic that referenced this issue Oct 6, 2015
AlexAsh added a commit to AlexAsh/assetic that referenced this issue Oct 6, 2015
AlexAsh added a commit to AlexAsh/assetic that referenced this issue Oct 6, 2015
AlexAsh added a commit to AlexAsh/assetic that referenced this issue Oct 6, 2015
AlexAsh added a commit to AlexAsh/assetic that referenced this issue Oct 6, 2015
AlexAsh added a commit to AlexAsh/assetic that referenced this issue Oct 6, 2015
AlexAsh added a commit to AlexAsh/assetic that referenced this issue Oct 6, 2015
AlexAsh added a commit to AlexAsh/assetic that referenced this issue Nov 5, 2015
AlexAsh added a commit to AlexAsh/assetic that referenced this issue Nov 5, 2015
AlexAsh added a commit to AlexAsh/assetic that referenced this issue Nov 5, 2015
AlexAsh added a commit to AlexAsh/assetic that referenced this issue Nov 5, 2015
AlexAsh added a commit to AlexAsh/assetic that referenced this issue Nov 5, 2015
AlexAsh added a commit to AlexAsh/assetic that referenced this issue Nov 5, 2015
AlexAsh added a commit to AlexAsh/assetic that referenced this issue Nov 5, 2015
AlexAsh added a commit to AlexAsh/assetic that referenced this issue Nov 5, 2015
AlexAsh added a commit to AlexAsh/assetic that referenced this issue Nov 5, 2015
dhopkalo pushed a commit to tonicforhealth/assetic that referenced this issue Jan 13, 2016
dhopkalo pushed a commit to tonicforhealth/assetic that referenced this issue Jan 13, 2016
@dhopkalo
Copy link

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

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

pls review

dhopkalo pushed a commit to tonicforhealth/assetic that referenced this issue Jan 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants