fix: pixiview:// scheme issue

This commit is contained in:
Tsanie Lily 2020-05-10 16:53:41 +08:00
parent 9859c56da6
commit c271063390

View File

@ -131,7 +131,7 @@ namespace Pixiview
if (current != null && uri != null)
{
var url = uri.AbsolutePath;
if (uri.Scheme == "pixiview://")
if ("pixiview".Equals(uri.Scheme, StringComparison.OrdinalIgnoreCase))
{
var m = Regex.Match(url, "/artworks/([0-9]+)", RegexOptions.IgnoreCase);
if (m.Success)