mirror of
https://github.com/QL-Win/QuickLook.git
synced 2026-05-08 03:06:29 +08:00
Support .psv parsing in CsvViewer
This commit is contained in:
@@ -34,7 +34,12 @@ public sealed class Plugin : IViewer
|
||||
|
||||
public bool CanHandle(string path)
|
||||
{
|
||||
return !Directory.Exists(path) && (path.ToLower().EndsWith(".csv") || path.ToLower().EndsWith(".tsv"));
|
||||
if (Directory.Exists(path))
|
||||
return false;
|
||||
|
||||
return path.EndsWith(".csv", StringComparison.OrdinalIgnoreCase)
|
||||
|| path.EndsWith(".tsv", StringComparison.OrdinalIgnoreCase)
|
||||
|| path.EndsWith(".psv", StringComparison.OrdinalIgnoreCase);
|
||||
}
|
||||
|
||||
public void Prepare(string path, ContextObject context)
|
||||
|
||||
Reference in New Issue
Block a user