Skip to content

Commit e5b800e

Browse files
fix(links): allow any value after http protocol
1 parent d1b7f1a commit e5b800e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: lua/orgmode/org/links/types/http.lua

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
local utils = require('orgmode.utils')
2-
31
---@class OrgLinkHttp:OrgLinkType
42
---@field private files OrgFiles
53
local OrgLinkHttp = {}
@@ -39,7 +37,7 @@ end
3937
---@param link string
4038
---@return string | nil
4139
function OrgLinkHttp:_parse(link)
42-
local is_url = link:match('^https?://(.+)$')
40+
local is_url = link:match('^https?:.+$')
4341
if is_url then
4442
return link
4543
end

0 commit comments

Comments
 (0)