Open djkrose opened 7 years ago
Looking at LessCompiler/src/Compiler/ProjectMap.cs, it seems like there is just a try-catch neccessary to ignore incorrect paths:
private async Task AddOption(CompilerOptions options, string lessContent = null)
{
lessContent = lessContent ?? File.ReadAllText(options.InputFilePath);
string lessDir = Path.GetDirectoryName(options.InputFilePath);
foreach (Match match in _import.Matches(lessContent))
{
try
{
string childFilePath = new FileInfo(Path.Combine(lessDir, match.Groups["url"].Value)).FullName;
}
catch (Exception)
{
continue; // This isn't even a valid path so there are certainly no Less options to find
}
[...]
Installed product versions
Description
The selector
a[href^="tel:"]
in an inline-imported css file can cause LessCompiler to fail with the following exception:Steps to recreate