mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-16 02:44:10 +02:00
Remove 96 character limit for pasted urls
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user