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:
parent
4e04c4dddd
commit
b0dbb0ea13
3 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue