Skip to content

Commit 27b9b60

Browse files
committed
fix: correct typo in absolute-URL detection
1 parent 46ae23e commit 27b9b60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renderers.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
render(::Nothing, args...) = nothing
22

33
function render(brand_image::BrandImage, dir, thispagepath)
4-
href = startswith(brand_image.path, "https?://") ?
4+
href = startswith(brand_image.path, r"https?://") ?
55
brand_image.path :
66
relpath(joinpath(dir, brand_image.path), thispagepath)
7-
src = startswith(brand_image.imagepath, "https?://") ?
7+
src = startswith(brand_image.imagepath, r"https?://") ?
88
brand_image.imagepath :
99
relpath(joinpath(dir, brand_image.imagepath), thispagepath)
1010
return @htl """

0 commit comments

Comments
 (0)