aboutsummaryrefslogtreecommitdiffstats
path: root/src/html
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-11-20 17:20:41 +0100
committerbptato <nincsnevem662@gmail.com>2023-11-20 17:20:41 +0100
commit342a1a7f787fc260448842ee312cf29825f96ba6 (patch)
treee4e1d28e424e60da8b2618195c40442b79bd2ba8 /src/html
parentd20fc30e10aeecfb2ede7adc4547b9ae394565b9 (diff)
downloadchawan-342a1a7f787fc260448842ee312cf29825f96ba6.tar.gz
twtstr: remove tolower, isWhitespace
* tolower: strutils toLowerAscii is good enough for the cases where we need it. Also, it's easy to confuse with unicode toLower and vice versa. * isWhitespace: in AsciiWhitespace is more idiomatic. Also has a naming collision with unicode toLower.
Diffstat (limited to 'src/html')
-rw-r--r--src/html/dom.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim
index 8834f4e5..ec3304ab 100644
--- a/src/html/dom.nim
+++ b/src/html/dom.nim
@@ -2303,7 +2303,7 @@ func IDLAttributeToCSSProperty(s: string, dashPrefix = false): string =
for c in s:
if c in AsciiUpperAlpha:
result &= '-'
- result &= c.tolower()
+ result &= c.toLowerAscii()
else:
result &= c