Add MakefileDetector for text viewer

This commit is contained in:
ema
2025-07-09 03:24:42 +08:00
parent d6cc984267
commit 0a79d59c79
13 changed files with 220 additions and 14 deletions

View File

@@ -27,8 +27,10 @@ public class XMLDetector : IFormatDetector
public string Extension => ".xml";
public bool Detect(string text)
public bool Detect(string path, string text)
{
_ = path;
return Signature.IsMatch(text);
}
}