diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2020-06-18 02:14:04 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2024-03-28 17:00:57 +0100 |
commit | 1ed6b90d975c1139b73597841e57fe379b2e6cdb (patch) | |
tree | 42bae3153a8e3b524310d9a7bd76c6f225c3e8b4 /osurl | |
parent | cc98051a784985a03aa0fdaed59d5a29994bc742 (diff) | |
download | vim-suse-changes-1ed6b90d975c1139b73597841e57fe379b2e6cdb.tar.gz |
fix(osurl): don't lower-case all URLs.
Diffstat (limited to 'osurl')
-rwxr-xr-x | osurl | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -52,4 +52,10 @@ for k,v in pairs(patterns) do end local pat = Cs((bugpat + P(1))^0) -os.execute("xdg-open " .. pat:match(arg[1]:lower())) +local in_url = arg[1] +local out_url = pat:match(in_url:lower()) +if out_url == in_url:lower() then + out_url = in_url +end + +os.execute("xdg-open " .. out_url) |