2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

And add tests for empty string & null

This commit is contained in:
Anton Batenev 2013-07-09 20:19:10 +04:00
parent 4e04c4dddd
commit b0dbb0ea13
3 changed files with 10 additions and 2 deletions

View file

@ -87,7 +87,7 @@ module Email
value = header[1].strip
result[name] = value if name.length > 0 && value.length > 0
end
}
} if !string.nil?
result
end