From 5d7897d2aca6f975f5490fbfee9f83272c8756a8 Mon Sep 17 00:00:00 2001 From: Tush-r Date: Thu, 12 Sep 2024 16:48:12 +0530 Subject: [PATCH] Remove 96 character limit for pasted urls --- .../rarchives/ripme/uiUtils/ContextActionProtections.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/rarchives/ripme/uiUtils/ContextActionProtections.java b/src/main/java/com/rarchives/ripme/uiUtils/ContextActionProtections.java index e247926c..9237fea9 100644 --- a/src/main/java/com/rarchives/ripme/uiUtils/ContextActionProtections.java +++ b/src/main/java/com/rarchives/ripme/uiUtils/ContextActionProtections.java @@ -17,10 +17,11 @@ public class ContextActionProtections { try { String clipboardContent = (String) transferable.getTransferData(DataFlavor.stringFlavor); + // TODO check if commenting this causes regression // Limit the pasted content to 96 characters - if (clipboardContent.length() > 96) { - clipboardContent = clipboardContent.substring(0, 96); - } + // if (clipboardContent.length() > 96) { + // clipboardContent = clipboardContent.substring(0, 96); + // } // Set the text in the JTextField textComponent.setText(clipboardContent); } catch (UnsupportedFlavorException | IOException unable_to_modify_text_on_paste) {