use existing CharArrays for TrimStart() to reduce array allocations
This commit is contained in:
@@ -141,7 +141,7 @@ namespace Umbraco.Cms.Web.Common.AspNetCore
|
||||
throw new ArgumentException("The path appears to already be fully qualified. Please remove the call to MapPath");
|
||||
}
|
||||
|
||||
return Path.Combine(root, newPath.TrimStart('~', '/', '\\'));
|
||||
return Path.Combine(root, newPath.TrimStart(Core.Constants.CharArrays.TildeForwardSlashBackSlash));
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
|
||||
Reference in New Issue
Block a user