Merge pull request #2136 from oderwat/fix-matchers

Fixed non exhaustive case by adding else
This commit is contained in:
reactormonk
2015-02-15 12:16:27 +05:00

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".} =