new VM is getting stable
This commit is contained in:
parent
6ea538cec3
commit
b4e25a6372
8 changed files with 206 additions and 124 deletions
|
|
@ -93,7 +93,7 @@ proc normalize*(s: string): string {.noSideEffect, procvar,
|
|||
var j = 0
|
||||
for i in 0..len(s) - 1:
|
||||
if s[i] in {'A'..'Z'}:
|
||||
result[j] = Chr(Ord(s[i]) + (Ord('a') - Ord('A')))
|
||||
result[j] = chr(ord(s[i]) + (ord('a') - ord('A')))
|
||||
inc j
|
||||
elif s[i] != '_':
|
||||
result[j] = s[i]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue