mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-01-04 03:48:07 +02:00
fix formatting
This commit is contained in:
parent
ee4660af97
commit
db94dde114
@ -171,7 +171,7 @@ func (c *OSCommand) PrepareSubProcess(cmdName string, commandArgs ...string) (*e
|
||||
|
||||
// Quote wraps a message in platform-specific quotation marks
|
||||
func (c *OSCommand) Quote(message string) string {
|
||||
r := regexp.MustCompile("`")
|
||||
message = r.ReplaceAllString(message, "\\`")
|
||||
r := regexp.MustCompile("`")
|
||||
message = r.ReplaceAllString(message, "\\`")
|
||||
return c.Platform.escapedQuote + message + c.Platform.escapedQuote
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user