From b82585058c55c9059a38f19879cdc0237c2f822b Mon Sep 17 00:00:00 2001 From: dewekk <60457472+dewekk@users.noreply.github.com> Date: Thu, 23 Nov 2023 16:50:55 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8=20?= =?UTF-8?q?=EC=9E=90=EB=8F=99=20=EC=95=95=EC=B6=95=20=EC=82=AC=EC=9A=A9=20?= =?UTF-8?q?=EC=8B=9C=20import=20=EA=B5=AC=EB=AC=B8=20=EC=9D=B8=EC=8B=9D=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/framework/Formatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/framework/Formatter.php b/common/framework/Formatter.php index 7fc462874..df520d8bd 100644 --- a/common/framework/Formatter.php +++ b/common/framework/Formatter.php @@ -387,7 +387,7 @@ class Formatter // Convert all paths in LESS and SCSS imports, too. $dirname = dirname($filename); $import_type = ends_with('.scss', $filename) ? 'scss' : 'normal'; - $content = preg_replace_callback('/@import\s+([^\r\n]+);(?=[\r\n$])/', function($matches) use($dirname, $filename, $target_filename, $import_type, &$imported_list, &$imported_urls) { + $content = preg_replace_callback('/@import\s+([^\r\n]+);[\r\n]*/', function($matches) use($dirname, $filename, $target_filename, $import_type, &$imported_list, &$imported_urls) { if (preg_match('!^url\([\'"]?((?:https?:)?//[^()\'"]+)!i', $matches[1], $urlmatches)) { $imported_urls[] = $urlmatches[1];