about summary refs log tree commit diff stats
path: root/src/utils/twtstr.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-06-07 19:30:55 +0200
committerbptato <nincsnevem662@gmail.com>2023-06-07 19:30:55 +0200
commit578df008d0e2e6ac2d8ee2ad84ccf640f8d07c55 (patch)
tree216e69d75300e241508194b3ed61221e98c5f1c6 /src/utils/twtstr.nim
parent724f196225b5351724f0018b2fc78d744891fb17 (diff)
downloadchawan-578df008d0e2e6ac2d8ee2ad84ccf640f8d07c55.tar.gz
Add support for width, height media query
Diffstat (limited to 'src/utils/twtstr.nim')
-rw-r--r--src/utils/twtstr.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils/twtstr.nim b/src/utils/twtstr.nim
index 93fce06f..c41a7e57 100644
--- a/src/utils/twtstr.nim
+++ b/src/utils/twtstr.nim
@@ -130,6 +130,9 @@ func normalizeLocale*(s: string): string =
 func isAscii*(r: Rune): bool =
   return cast[uint32](r) < 128
 
+func `==`*(r: Rune, c: char): bool {.inline.} =
+  return Rune(c) == r
+
 func startsWithNoCase*(str, prefix: string): bool =
   if str.len < prefix.len: return false
   # prefix.len is always lower