diff --git a/xNet/Html.cs b/xNet/Html.cs index db77199..6801190 100644 --- a/xNet/Html.cs +++ b/xNet/Html.cs @@ -77,7 +77,7 @@ public static string ReplaceUnicode(this string str) return string.Empty; } - var regex = new Regex(@"\\[uU](?[0-9A-F]{4})", RegexOptions.Compiled); + var regex = new Regex(@"\\u(?[0-9a-f]{4})", RegexOptions.Compiled | RegexOptions.IgnoreCase); string result = regex.Replace(str, match => { @@ -583,4 +583,4 @@ public static string[] Substrings(this string str, string left, string right, #endregion } -} \ No newline at end of file +}