File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
QuickLook.Plugin.ImageViewer
QuickLook.Plugin.ThumbnailViewer Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ public bool CanHandle(string path)
108108
109109 // Disabled due mishandling text file types e.g., "*.config".
110110 // Only check extension for well known image and animated image types.
111- return ! Directory . Exists ( path ) && WellKnownExtensions . Contains ( Path . GetExtension ( path ) . ToLower ( ) ) ;
111+ return ! Directory . Exists ( path ) && WellKnownExtensions . Any ( ext => path . EndsWith ( ext , StringComparison . OrdinalIgnoreCase ) ) ;
112112 }
113113
114114 public void Prepare ( string path , ContextObject context )
Original file line number Diff line number Diff line change 2020using System ;
2121using System . Collections . Generic ;
2222using System . IO ;
23+ using System . Linq ;
2324using System . Threading . Tasks ;
2425using System . Windows ;
2526using System . Windows . Media . Imaging ;
@@ -49,7 +50,7 @@ public void Init()
4950
5051 public bool CanHandle ( string path )
5152 {
52- return ! Directory . Exists ( path ) && WellKnownExtensions . Contains ( Path . GetExtension ( path . ToLower ( ) ) ) ;
53+ return ! Directory . Exists ( path ) && WellKnownExtensions . Any ( ext => path . EndsWith ( ext , StringComparison . OrdinalIgnoreCase ) ) ;
5354 }
5455
5556 public void Prepare ( string path , ContextObject context )
You can’t perform that action at this time.
0 commit comments