From 832026cddb55d341a025427b3d5edf770a2d71ec Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 20 Dec 2020 15:32:44 +0100 Subject: Rename `escapeBrowserCommand()` to `shellEscapeCommand()` Didn't like `escapeBrowserCommand()` either, since we're escaping the URL not the rest of the command. --- browserenv_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'browserenv_unix.go') diff --git a/browserenv_unix.go b/browserenv_unix.go index d2f9538..0e62fe5 100644 --- a/browserenv_unix.go +++ b/browserenv_unix.go @@ -19,7 +19,7 @@ func shell() (args []string) { } // TODO -func escapeBrowserCommand(browser, url string) string { +func shellEscapeCommand(browser, url string) string { // TODO: handle %s in browser command return fmt.Sprintf("%s '%s'", browser, url) } -- cgit v1.2.3