Skip to content

Commit

Permalink
Fixed: Fix tests added in b84dc70
Browse files Browse the repository at this point in the history
  • Loading branch information
agnostic-apollo authored Oct 28, 2024
1 parent b84dc70 commit fb01127
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public class FileReceiverActivity extends AppCompatActivity {
private static final String LOG_TAG = "FileReceiverActivity";

static boolean isSharedTextAnUrl(String sharedText) {
if (sharedText == null || sharedText.isEmpty()) return false;

return Patterns.WEB_URL.matcher(sharedText).matches()
|| Pattern.matches("magnet:\\?xt=urn:btih:.*?", sharedText);
}
Expand Down

0 comments on commit fb01127

Please sign in to comment.