Skip to content
This repository has been archived by the owner on Feb 14, 2022. It is now read-only.

Commit

Permalink
TextHelper.StringContainsRawUnicode now returns false with an empty s…
Browse files Browse the repository at this point in the history
…tring
  • Loading branch information
DecaTec committed Jan 2, 2017
1 parent dbcce26 commit 8c94986
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion DecaTec.WebDav.sln
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ Global
{1107064D-9692-4301-971F-6456A00674A9}.Release|x86.ActiveCfg = Release|Any CPU
{1107064D-9692-4301-971F-6456A00674A9}.Release|x86.Build.0 = Release|Any CPU
{84FF3C33-8230-421D-8FF8-0D506562DA2D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{84FF3C33-8230-421D-8FF8-0D506562DA2D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{84FF3C33-8230-421D-8FF8-0D506562DA2D}.Debug|ARM.ActiveCfg = Debug|Any CPU
{84FF3C33-8230-421D-8FF8-0D506562DA2D}.Debug|ARM.Build.0 = Debug|Any CPU
{84FF3C33-8230-421D-8FF8-0D506562DA2D}.Debug|x64.ActiveCfg = Debug|Any CPU
Expand Down
3 changes: 3 additions & 0 deletions Shared/DecaTec.WebDav.Shared/TextHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ public static class TextHelper
/// <remarks>If a string contains raw Unicode, this often indicates that there is a problem displaying the string in a readable notation (e.g. for non western characters).</remarks>
public static bool StringContainsRawUnicode(string str)
{
if (string.IsNullOrEmpty(str))
return false;

var str1 = unicodeRegex.Replace(str, String.Empty);
return !str.Equals(str1);
}
Expand Down

0 comments on commit 8c94986

Please sign in to comment.