We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b84dc70 commit fb01127Copy full SHA for fb01127
app/src/main/java/com/termux/app/api/file/FileReceiverActivity.java
@@ -55,6 +55,8 @@ public class FileReceiverActivity extends AppCompatActivity {
55
private static final String LOG_TAG = "FileReceiverActivity";
56
57
static boolean isSharedTextAnUrl(String sharedText) {
58
+ if (sharedText == null || sharedText.isEmpty()) return false;
59
+
60
return Patterns.WEB_URL.matcher(sharedText).matches()
61
|| Pattern.matches("magnet:\\?xt=urn:btih:.*?", sharedText);
62
}
0 commit comments