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:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user