1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-17 19:26:34 +02:00

Remove 96 character limit for pasted urls

This commit is contained in:
Tush-r
2024-09-12 16:48:12 +05:30
committed by soloturn
parent e7a531b8b6
commit 5d7897d2ac

View File

@@ -17,10 +17,11 @@ public class ContextActionProtections {
try { try {
String clipboardContent = (String) transferable.getTransferData(DataFlavor.stringFlavor); String clipboardContent = (String) transferable.getTransferData(DataFlavor.stringFlavor);
// TODO check if commenting this causes regression
// Limit the pasted content to 96 characters // Limit the pasted content to 96 characters
if (clipboardContent.length() > 96) { // if (clipboardContent.length() > 96) {
clipboardContent = clipboardContent.substring(0, 96); // clipboardContent = clipboardContent.substring(0, 96);
} // }
// Set the text in the JTextField // Set the text in the JTextField
textComponent.setText(clipboardContent); textComponent.setText(clipboardContent);
} catch (UnsupportedFlavorException | IOException unable_to_modify_text_on_paste) { } catch (UnsupportedFlavorException | IOException unable_to_modify_text_on_paste) {