made white space check in bodyContainsDownloadable less aggresive

This commit is contained in:
Daniel Gultsch 2015-05-16 12:49:04 +02:00
parent 7ccdc772ed
commit fce30f22c9
1 changed files with 1 additions and 1 deletions

View File

@ -440,7 +440,7 @@ public class Message extends AbstractEntity {
* "http://example.com/image.jpg text that will not be shown /abc.png"
* or more than one image link in one message.
*/
if (body.contains(" ")) {
if (body.trim().contains(" ")) {
return false;
}
try {