Skip to content

Conversation

@Alex-duzhichao
Copy link

No description provided.

@JoyHak
Copy link

JoyHak commented Dec 10, 2025

In that case text\r\ntext will be replaced with textext which is not ok. Its better to use space ' '. Furthermore you should use \R for unicode line breaks...

var text = str(input())
text = text.replace(/[\\r\\n]/g, '');
add(text);
selectItems(0);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may also copy and paste the text, which may be unexpected (neither the description nor the name indicates this).

Also, the new text may be inserted to a different position if there is a pinned item index 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants