Merge pull request #17330 from Homebrew/safe-shell-chars

This commit is contained in:
Carlo Cabrera 2024-05-19 00:15:59 +08:00 committed by GitHub
commit e9d989bdea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -106,7 +106,7 @@ module Utils
zsh: "~/.zshrc",
}.freeze
UNSAFE_SHELL_CHAR = %r{([^A-Za-z0-9_\-.,:/@~\n])}
UNSAFE_SHELL_CHAR = %r{([^A-Za-z0-9_\-.,:/@~+\n])}
sig { params(str: String).returns(String) }
def csh_quote(str)