Server.Misc.ShardPollPrompt.UrlRegex_Match C# (CSharp) Méthode

UrlRegex_Match() private static méthode

private static UrlRegex_Match ( Match m ) : string
m System.Text.RegularExpressions.Match
Résultat string
		private static string UrlRegex_Match( Match m )
		{
			if ( m.Groups[1].Success )
			{
				if ( m.Groups[2].Success )
					return String.Format( "<a href=\"{0}\">{1}</a>", m.Groups[1].Value, m.Groups[2].Value );
			}
			else if ( m.Groups[2].Success )
			{
				return String.Format( "<a href=\"{0}\">{0}</a>", m.Groups[2].Value );
			}

			return m.Value;
		}