mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-27 04:34:59 +01:00
Treat ".css" imports as plain imports. (#48)
This commit is contained in:
parent
ab1ff78bf8
commit
dd2fa6f574
@ -675,7 +675,8 @@ abstract class StylesheetParser extends Parser {
|
||||
|
||||
/// Returns whether [url] indicates that an `@import` is a plain CSS import.
|
||||
bool _isPlainImportUrl(String url) {
|
||||
if (url.length < "//".length) return false;
|
||||
if (url.length < 5) return false;
|
||||
if (url.endsWith(".css")) return true;
|
||||
|
||||
var first = url.codeUnitAt(0);
|
||||
if (first == $slash) return url.codeUnitAt(1) == $slash;
|
||||
|
Loading…
Reference in New Issue
Block a user