From 458a7f7d72ffc020c8c4d3b377db7cb97ac18336 Mon Sep 17 00:00:00 2001 From: jmdouglas Date: Wed, 13 May 2020 23:47:58 +0200 Subject: [PATCH] Fix http search bug --- .../java/de/danoeh/antennapod/fragment/AddFeedFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/AddFeedFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/AddFeedFragment.java index 046a39355..546684f14 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/AddFeedFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/AddFeedFragment.java @@ -98,7 +98,7 @@ public class AddFeedFragment extends Fragment { private void performSearch() { String query = combinedFeedSearchBox.getText().toString(); - if (query.startsWith("http")) { + if (query.matches("http[s]?://.*")) { addUrl(query); return; }