mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 08:41:39 +09:00
Fix #2550 incorrect handling of absolute URLs in imported SCSS files
This commit is contained in:
parent
80729f2aaf
commit
b249df71b6
1 changed files with 2 additions and 2 deletions
|
|
@ -453,8 +453,8 @@ class Formatter
|
|||
}
|
||||
if ($import_type === 'scss')
|
||||
{
|
||||
$import_content = preg_replace('!//.*?\n!s', '', $import_content);
|
||||
$import_content = preg_replace('![\r\n]+!', ' ', $import_content);
|
||||
$import_content = preg_replace('@(?<!:)//.*?\n@s', '', $import_content);
|
||||
$import_content = preg_replace('@[\r\n]@', ' ', $import_content);
|
||||
}
|
||||
return trim($import_content);
|
||||
}, $content);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue