From b1756b0e828717d60d6a26a5b1dedb35b602d9e9 Mon Sep 17 00:00:00 2001 From: dewekk <60457472+dewekk@users.noreply.github.com> Date: Thu, 23 Nov 2023 18:16:52 +0900 Subject: [PATCH] =?UTF-8?q?b825850=20=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 df520d8bd..975ae97a4 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]+)?;/', 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];