Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[AssetMapper] Fix CssCompiler matches url in comments#59544

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:6.4fromsmnandre:fix/css-url-import-comment
Jan 25, 2025

Conversation

smnandre
Copy link
Member

QA
Branch?6.4
Bug fix?yes
New feature?no
Deprecations?no
IssuesFix#59512
LicenseMIT

Add a check to avoid matching url in comments

@dbannik
Copy link

Please check thetestCase

Fileimages/foo.png should not be contain inexpectedDependencies
becauseurl("images/foo.png"); contain in comment block

yield'ignore_comment_block' => ['input' =><<<CSS        body {            /* background: url("images/foo.png"); */        }        CSS    ,'expectedOutput' =><<<CSS        body {            /* background: url("images/foo.png"); */        }        CSS    ,'expectedDependencies' => [],];

related#59512 (comment)

@smnandre
Copy link
MemberAuthor

yield'ignore_comment_block_ffs' => ['input' =><<<CSS        body {            /* background: url("images/need-ignore.png"); */        }        CSS    ,'expectedOutput' =><<<CSS        body {            /* background: url("images/need-ignore.png"); */        }        CSS    ,'expectedDependencies' => [],];

This test ispassing.

You cannot useimages/foo.png and expect it to not be mapped (seetestCompile build).

@fabpotfabpotforce-pushed thefix/css-url-import-comment branch frome4ff4f1 to9a43703CompareJanuary 25, 2025 08:10
@fabpot
Copy link
Member

Thank you@smnandre.

@fabpotfabpot merged commitb6f477c intosymfony:6.4Jan 25, 2025
8 checks passed
This was referencedJan 29, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@fabpotfabpotfabpot approved these changes

@javiereguiluzjaviereguiluzjaviereguiluz approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
6.4
Development

Successfully merging this pull request may close these issues.

5 participants
@smnandre@dbannik@fabpot@javiereguiluz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp