OSDN Git Service

Fixed error in regex for parsing SLUrls
authorLatif Khalifa <latifer@streamgrid.net>
Sun, 2 Mar 2014 17:37:57 +0000 (18:37 +0100)
committerLatif Khalifa <latifer@streamgrid.net>
Sun, 2 Mar 2014 17:37:57 +0000 (18:37 +0100)
Radegast/GUI/Dialogs/MainForm.cs

index 9c624fe..7f664be 100644 (file)
@@ -830,7 +830,7 @@ namespace Radegast
         public bool ProcessSecondlifeURI(string link)
         {
             // First try if we have a region name, assume it's a teleport link if we have
-            Regex r = new Regex(@"^(secondlife://)(?<region>[^/$]+)(/(?<x>\d+))?((/?<y>\d+))?(/(?<z>\d+))?",
+            Regex r = new Regex(@"^(secondlife://)(?<region>[^/$]+)(/(?<x>\d+))?(/(?<y>\d+))?(/(?<z>\d+))?",
                 RegexOptions.CultureInvariant | RegexOptions.ExplicitCapture | RegexOptions.IgnoreCase);
             Match m = r.Match(link);