From 190ec17fc514129acd59564bf843dd5b32d1f863 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Sat, 25 Nov 2023 22:30:09 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8D=94=20=EB=8B=A4=EC=96=91=ED=95=9C=20impor?= =?UTF-8?q?t=20=EB=AC=B8=EB=B2=95=EA=B3=BC=20=ED=8A=B9=EC=88=98=EB=AC=B8?= =?UTF-8?q?=EC=9E=90=20=EB=8C=80=EC=9D=91=ED=95=98=EC=97=AC=20#2214=20?= =?UTF-8?q?=EB=B3=B4=EC=99=84?= 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 975ae97a4..e06bd85a0 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]+)?;/', function($matches) use($dirname, $filename, $target_filename, $import_type, &$imported_list, &$imported_urls) { + $content = preg_replace_callback('/@import\s+((?:url\([^)]+\)|"[^"]+"|\'[^\']+\')[^;]*);/', 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];