Skip to content

Commit

Permalink
fix: spell
Browse files Browse the repository at this point in the history
  • Loading branch information
emako committed Nov 9, 2024
1 parent a1267bc commit b8ea56e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Flucli/Utils/Extensions/ArgumentExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static string ToArguments(this IEnumerable<string> cli)
return string.Join(" ", cli?.Select(arg => arg.ToQuoteMarkArguments()) ?? []);
}

public static string ToQuoteMarkArguments(this string arg, QuoteRepalce quoteType = QuoteRepalce.None)
public static string ToQuoteMarkArguments(this string arg, QuoteReplace quoteType = QuoteReplace.None)
{
if (string.IsNullOrEmpty(arg))
{
Expand All @@ -56,11 +56,11 @@ public static string ToQuoteMarkArguments(this string arg, QuoteRepalce quoteTyp

switch (quoteType)
{
case QuoteRepalce.DoubleQuote:
case QuoteReplace.DoubleQuote:
arg = arg.Replace("\"", "\"\"");
break;

case QuoteRepalce.BackSlashQuote:
case QuoteReplace.BackSlashQuote:
arg = arg.Replace("\"", "\\\"");
break;
}
Expand Down Expand Up @@ -103,7 +103,7 @@ public static SecureString ToSecureString(this string str)
return secureString;
}

public enum QuoteRepalce
public enum QuoteReplace
{
None,
DoubleQuote,
Expand Down

0 comments on commit b8ea56e

Please sign in to comment.