Skip to content
Permalink
Browse files

Fix for Outlook mail detection

Change to case insensitive comparison regarding Outlook emails. E.g. some formats appear different in Outlook versions, like "CSV/Csv" etc.
  • Loading branch information...
DXSdata committed May 8, 2018
1 parent 9a4c662 commit d53739c1e66b5483382f162fe10c4b6d94ca3d77
Showing with 3 additions and 3 deletions.
  1. +2 −2 ClipboardTools/Properties/AssemblyInfo.cs
  2. +1 −1 ClipboardTools/VirtualFiles.cs
@@ -32,5 +32,5 @@
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// indem Sie "*" wie unten gezeigt eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.1.0")]
[assembly: AssemblyFileVersion("1.1.1.0")]
[assembly: AssemblyVersion("1.1.2.0")]
[assembly: AssemblyFileVersion("1.1.2.0")]
@@ -66,7 +66,7 @@ public static bool ContainsOutlookEmail
var data = Clipboard.GetDataObject();
var formats = data.GetFormats();

if (neededFormats.All(o => formats.Contains(o)))
if (neededFormats.All(o => formats.Contains(o, StringComparer.InvariantCultureIgnoreCase)))
return true;

return false;

0 comments on commit d53739c

Please sign in to comment.
You can’t perform that action at this time.