Skip to content

Commit 5d7897d

Browse files
Tush-rsoloturn
authored andcommitted
Remove 96 character limit for pasted urls
1 parent e7a531b commit 5d7897d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/java/com/rarchives/ripme/uiUtils/ContextActionProtections.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ public static void pasteFromClipboard(JTextComponent textComponent) {
1717
try {
1818
String clipboardContent = (String) transferable.getTransferData(DataFlavor.stringFlavor);
1919

20+
// TODO check if commenting this causes regression
2021
// Limit the pasted content to 96 characters
21-
if (clipboardContent.length() > 96) {
22-
clipboardContent = clipboardContent.substring(0, 96);
23-
}
22+
// if (clipboardContent.length() > 96) {
23+
// clipboardContent = clipboardContent.substring(0, 96);
24+
// }
2425
// Set the text in the JTextField
2526
textComponent.setText(clipboardContent);
2627
} catch (UnsupportedFlavorException | IOException unable_to_modify_text_on_paste) {

0 commit comments

Comments
 (0)