fixed typos
This commit is contained in:
parent
8486f47dd9
commit
62faa163f0
|
@ -432,7 +432,7 @@ public class Message extends AbstractEntity {
|
||||||
public boolean bodyContainsDownloadable() {
|
public boolean bodyContainsDownloadable() {
|
||||||
/**
|
/**
|
||||||
* there are a few cases where spaces result in an unwanted behavior, e.g.
|
* there are a few cases where spaces result in an unwanted behavior, e.g.
|
||||||
* "http://example.com/image.jpg" text that will not be shown /abc.png"
|
* "http://example.com/image.jpg text that will not be shown /abc.png"
|
||||||
* or more than one image link in one message.
|
* or more than one image link in one message.
|
||||||
*/
|
*/
|
||||||
if (body.contains(" ")) {
|
if (body.contains(" ")) {
|
||||||
|
|
|
@ -20,7 +20,7 @@ public class GeoHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ArrayList<Intent> createGeoIntentsFromMessage(Message message) {
|
public static ArrayList<Intent> createGeoIntentsFromMessage(Message message) {
|
||||||
final ArrayList<Intent> intents = new ArrayList();
|
final ArrayList<Intent> intents = new ArrayList<>();
|
||||||
Matcher matcher = GEO_URI.matcher(message.getBody());
|
Matcher matcher = GEO_URI.matcher(message.getBody());
|
||||||
if (!matcher.matches()) {
|
if (!matcher.matches()) {
|
||||||
return intents;
|
return intents;
|
||||||
|
|
Loading…
Reference in New Issue