Merge branch 'v10/dev' into v10/contrib
# Conflicts: # src/Umbraco.Core/EmbeddedResources/Lang/en.xml # src/Umbraco.Core/EmbeddedResources/Lang/en_us.xml
This commit is contained in:
@@ -1327,11 +1327,8 @@ public static class StringExtensions
|
||||
/// <param name="path"></param>
|
||||
/// <returns></returns>
|
||||
// From: http://stackoverflow.com/a/35046453/5018
|
||||
public static bool IsFullPath(this string path) =>
|
||||
string.IsNullOrWhiteSpace(path) == false
|
||||
&& path.IndexOfAny(Path.GetInvalidPathChars().ToArray()) == -1
|
||||
&& Path.IsPathRooted(path)
|
||||
&& Path.GetPathRoot(path)?.Equals(Path.DirectorySeparatorChar.ToString(), StringComparison.Ordinal) == false;
|
||||
// Updated from .NET 2.1+: https://stackoverflow.com/a/58250915
|
||||
public static bool IsFullPath(this string path) => Path.IsPathFullyQualified(path);
|
||||
|
||||
// FORMAT STRINGS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user