diff --git a/FoxTube/Classes/Methods.cs b/FoxTube/Classes/Methods.cs
index 8779977..e3abc67 100644
--- a/FoxTube/Classes/Methods.cs
+++ b/FoxTube/Classes/Methods.cs
@@ -1,5 +1,6 @@
using MyToolkit.Multimedia;
using System;
+using System.Diagnostics;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Windows.UI;
@@ -56,20 +57,24 @@ namespace FoxTube
Regex regx = new Regex(@"(http(s)?://[\S]+|www.[\S]+|[\S]+@[\S]+)", RegexOptions.IgnoreCase);
Regex isWWW = new Regex(@"(http[s]?://[\S]+|www.[\S]+)");
Regex isEmail = new Regex(@"[\S]+@[\S]+");
- foreach (var item in regx.Split(text))
+ foreach (string item in regx.Split(text))
{
if (isWWW.IsMatch(item))
{
- Hyperlink link = new Hyperlink { NavigateUri = new Uri(item.ToLower().StartsWith("http") ? item : $"http://{item}"), Foreground = new SolidColorBrush(Colors.Red) };
+ Debug.WriteLine(item);
+ Hyperlink link = new Hyperlink { NavigateUri = new Uri(item), Foreground = new SolidColorBrush(Colors.Red) };
link.Inlines.Add(new Run { Text = item });
block.Inlines.Add(link);
}
else if (isEmail.IsMatch(item))
{
+ Debug.WriteLine(item);
Hyperlink link = new Hyperlink { NavigateUri = new Uri($"mailto:{item}"), Foreground = new SolidColorBrush(Colors.Red) };
link.Inlines.Add(new Run { Text = item });
block.Inlines.Add(link);
}
+ else if (item == "s")
+ continue;
else block.Inlines.Add(new Run { Text = item });
}
}
diff --git a/FoxTube/Controls/VideoPlayer.xaml b/FoxTube/Controls/VideoPlayer.xaml
index 6dae30a..0f2f6b9 100644
--- a/FoxTube/Controls/VideoPlayer.xaml
+++ b/FoxTube/Controls/VideoPlayer.xaml
@@ -57,6 +57,7 @@
Content=""
Width="45" Height="45"
ToolTipService.ToolTip="Maximize"/>
+