diff --git a/BuypeebApp.cs b/BuypeebApp.cs index 438cc70..cfa38f6 100644 --- a/BuypeebApp.cs +++ b/BuypeebApp.cs @@ -20,7 +20,7 @@ namespace Buypeeb { public static string IDFromURL(string url) { // TODO: handle invalid URLs better, or at all really - Regex rx = new Regex(@"^([^?]+)"); + Regex rx = new Regex(@"^([^?#]+)"); url = rx.Match(url).Groups[1].Value; // remove query params (if any) rx = new Regex(@".+\/(.+?)/?$");