Skip to content

Commit

Permalink
change match style
Browse files Browse the repository at this point in the history
  • Loading branch information
copiousfreetime committed May 3, 2024
1 parent d5f4e24 commit 15e3deb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/launchy/applications/browser.rb
Expand Up @@ -69,7 +69,7 @@ def browser_cmdline
def cmd_and_args(uri, _options = {})
cmd = browser_cmdline.to_s
args = [uri.to_s]
if cmd =~ /%s/ then
if cmd.include?("%s") then
cmd.gsub!(/%s/, args.shift)
end
[cmd, args]
Expand Down

0 comments on commit 15e3deb

Please sign in to comment.