diff --git a/Duplicati/CommandLine/Commands.cs b/Duplicati/CommandLine/Commands.cs
index d83de888f..37fbf5a5d 100644
--- a/Duplicati/CommandLine/Commands.cs
+++ b/Duplicati/CommandLine/Commands.cs
@@ -236,15 +236,15 @@ namespace Duplicati.CommandLine
}
///
- /// For bare file names with no wildcards, replace with the
- /// equivalent of prefixing with "*/" so we search all folders.
+ /// For bare file names with no wildcards, replace argument with
+ /// the equivalent of prefixing with "*/" so we search all folders.
///
public static IEnumerable PrefixArgsWithAsterisk(IEnumerable argList) =>
argList.Select(PrefixArgWithAsterisk);
///
- /// For bare file names with no wildcards, replace with the
- /// equivalent of prefixing with "*/" so we search all folders.
+ /// For bare file names with no wildcards, return argument with
+ /// the equivalent of prefixing with "*/" so we search all folders.
///
private static string PrefixArgWithAsterisk(string arg)
{
@@ -268,15 +268,15 @@ namespace Duplicati.CommandLine
}
///
- /// For folders, replace with the equivalent of suffixing with "/*"
- /// so we restore contents in the folder.
+ /// For folders, replace argument with the equivalent of suffixing
+ /// with "*" so we restore contents in the folder.
///
public static IEnumerable SuffixArgsWithAsterisk(IEnumerable argList) =>
argList.Select(SuffixArgWithAsterisk);
///
- /// For folders, replace with the equivalent of suffixing with "/*"
- /// so we restore contents in the folder.
+ /// For folders, return argument with the equivalent of suffixing
+ /// with "*" so we restore contents in the folder.
///
private static string SuffixArgWithAsterisk(string arg)
{
@@ -285,12 +285,12 @@ namespace Duplicati.CommandLine
if (endsWithSeparator && arg.StartsWith("@", StringComparison.Ordinal))
{
- // Convert to Regexp filter and suffix with "/.*"
+ // Convert to Regexp filter and suffix with ".*"
return $"[{Regex.Escape(arg.Substring(1))}.*]";
}
else if (endsWithSeparator && !containsWildcards && !arg.StartsWith("[", StringComparison.Ordinal))
{
- // Suffix with "/*"
+ // Suffix with "*"
return arg + "*";
}
else