Core.Strings - resharp

This commit is contained in:
Stephan
2013-02-19 06:27:13 -01:00
parent 96a279499b
commit c838b8a381
6 changed files with 7 additions and 15 deletions

View File

@@ -1,5 +1,4 @@
using System;
using System.Globalization;
using System.Globalization;
using System.Linq;
using Umbraco.Core.Models;

View File

@@ -43,9 +43,6 @@ namespace Umbraco.Core.Strings
// ValidStringCharacters = ValidStringCharactersSource.ToCharArray();
//}
public DefaultShortStringHelper()
{ }
#endregion
#region Configuration

View File

@@ -1,5 +1,4 @@
using System;
using System.Globalization;
using System.Globalization;
using Umbraco.Core.Models;
namespace Umbraco.Core.Strings

View File

@@ -118,7 +118,7 @@ function isSafeAlias(alias) {{
// check for camel (if previous character is a space, we'll upper case the current one
if (safeString.Length == 0 && invalidFirstCharacters.Contains(currentChar.ToLower()))
{
currentChar = "";
//currentChar = "";
}
else
{

View File

@@ -1,9 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Umbraco.Core.ObjectResolution;
using Umbraco.Core.ObjectResolution;
namespace Umbraco.Core.Strings
{
@@ -35,7 +32,7 @@ namespace Umbraco.Core.Strings
/// </summary>
public IEnumerable<IUrlSegmentProvider> Providers
{
get { return this.Values; }
get { return Values; }
}
}
}

View File

@@ -168,7 +168,7 @@ namespace Umbraco.Web.Routing
LogHelper.Debug<PublishedContentRequestEngine>("{0}Uri=\"{1}\"", () => tracePrefix, () => _pcr.Uri);
// try to find a domain matching the current request
var domainAndUri = DomainHelper.DomainMatch(Domain.GetDomains(), _pcr.Uri, false);
var domainAndUri = DomainHelper.DomainMatch(Domain.GetDomains().ToArray(), _pcr.Uri, false);
// handle domain
if (domainAndUri != null)
@@ -218,7 +218,7 @@ namespace Umbraco.Web.Routing
var nodePath = _pcr.PublishedContent.Path;
LogHelper.Debug<PublishedContentRequestEngine>("{0}Path=\"{1}\"", () => tracePrefix, () => nodePath);
var rootNodeId = _pcr.HasDomain ? _pcr.Domain.RootNodeId : (int?)null;
var domain = DomainHelper.LookForWildcardDomain(Domain.GetDomains(), nodePath, rootNodeId);
var domain = DomainHelper.LookForWildcardDomain(Domain.GetDomains().ToArray(), nodePath, rootNodeId);
if (domain != null)
{