Fixed non exhaustive case by adding else

This commit is contained in:
Hans Raaf
2015-02-15 04:44:15 +01:00
parent a80969f96b
commit a7484ac092

View File

@@ -42,7 +42,7 @@ proc validEmailAddress*(s: string): bool {.noSideEffect,
case toLower(x)
of "com", "org", "net", "gov", "mil", "biz", "info", "mobi", "name",
"aero", "jobs", "museum": return true
return false
else: return false
proc parseInt*(s: string, value: var int, validRange: Slice[int]) {.
noSideEffect, rtl, extern: "nmatchParseInt".} =