about summary refs log tree commit diff stats
path: root/src/utils
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-07-18 18:04:23 +0200
committerbptato <nincsnevem662@gmail.com>2024-07-18 18:04:34 +0200
commit01cb95c89fb53a936172412e6dd69b943bf73b4b (patch)
treeef487df7881660da32eec13ee0db1efc810baa20 /src/utils
parentc3b0bf902ef776be86e6c1f3dd292f3a8baa9f79 (diff)
downloadchawan-01cb95c89fb53a936172412e6dd69b943bf73b4b.tar.gz
luwrap: use lre_is_space
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/luwrap.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/utils/luwrap.nim b/src/utils/luwrap.nim
index 7ccb2c51..926cf0c0 100644
--- a/src/utils/luwrap.nim
+++ b/src/utils/luwrap.nim
@@ -50,8 +50,7 @@ proc capitalizeLU*(s: string): string =
   result = newStringOfCap(s.len)
   var wordStart = true
   for r in s.runes:
-    if uint32(r) < 256 and char(r) in AsciiWhitespace or
-        lre_is_space_non_ascii(uint32(r)) == 1:
+    if lre_is_space(uint32(r)) == 1:
       wordStart = true
       result &= $r
     elif wordStart: