diff options
author | bptato <nincsnevem662@gmail.com> | 2024-05-08 23:03:16 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-05-08 23:03:16 +0200 |
commit | 0ecdc3fcb376b62756c74c1e667002a5022863be (patch) | |
tree | 2bbde0814fb42f39813460241efdbacda57b5443 /src/utils/twtstr.nim | |
parent | 264419bde7a73ba34095af65fd0f34ab88e7070a (diff) | |
download | chawan-0ecdc3fcb376b62756c74c1e667002a5022863be.tar.gz |
dom: simplify ButtonType
Diffstat (limited to 'src/utils/twtstr.nim')
-rw-r--r-- | src/utils/twtstr.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/twtstr.nim b/src/utils/twtstr.nim index b1c6d1c9..da234982 100644 --- a/src/utils/twtstr.nim +++ b/src/utils/twtstr.nim @@ -675,7 +675,7 @@ func parseEnumNoCase*[T: enum](s: string): Opt[T] = # cmp when len is small enough, otherwise hashmap when {T.low..T.high}.len <= 4: for e in T.low .. T.high: - if $e.equalsIgnoreCase(s): + if ($e).equalsIgnoreCase(s): return ok(e) else: const tab = (func(): Table[string, T] = |