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

@@ -26,8 +26,10 @@ public class JSONDetector : IFormatDetector
public string Extension => ".json";
public bool Detect(string text)
public bool Detect(string path, string text)
{
_ = path;
if (string.IsNullOrWhiteSpace(text)) return false;
var span = text.AsSpan();