From beff2b2b4bb33065141021c7fb32f05990b0ee2d Mon Sep 17 00:00:00 2001 From: John Date: Mon, 24 Mar 2025 15:09:46 +0100 Subject: [PATCH] Use type literals for comparison (#112) --- lib.typ | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib.typ b/lib.typ index d7f3a44..59a7214 100644 --- a/lib.typ +++ b/lib.typ @@ -225,7 +225,7 @@ use-smallcaps: true, body, ) = { - if type(accent-color) == "string" { + if type(accent-color) == str { accent-color = rgb(accent-color) } @@ -507,7 +507,7 @@ location-color: default-location-color, ) = { let title-content - if type(title-link) == "string" { + if type(title-link) == str { title-content = link(title-link)[#title] } else { title-content = title @@ -608,7 +608,7 @@ use-smallcaps: true, body, ) = { - if type(accent-color) == "string" { + if type(accent-color) == str { accent-color = rgb(accent-color) }