-
-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug Report: CRs are Converted to LFs When Pasting Text #931
Comments
According to the w3 spec:
Are you aware of any other web forms (a textarea specifically) that retains the CR and LF that you copy into it? I'd like to see how they are handling various line endings (I'm thinking that this makes it entirely the browser's fault for the CRLF/CR/LF changes) |
@OnlineCop I'm a bit confused, that's a CodeMirror div as well, where's the |
This may be relevant: codemirror/codemirror5#3395 |
Thanks for reviewing and for the info guys. How about this: Would the CRs be retained if they were in a file? If so, then could RegEx101 allow for setting the source test string from a file? |
@TWiStErRob Codemirror is backed by a hidden text area You can not currently test CR on regex101.com |
I believe I have found a bug when pasting text that contains the CR character (ASCII 13) into the Test String panel for a RegEx101.com snippet.
Running Google Chrome 61.0.3163.100 (3163.100) on macOS 10.11.6.
When text is pasted into this panel, it evidently converts all CR (ASCII 13) to LF (ASCII 10).
I have confirmed the proper data is being placed on the Clipboard by AppleScript, by using the following:
• Clipboard Viewer.app
• BBEdit.app
• Keyboard Maestro.app
The simple AppleScript is:
Note the AppleScript "return" command generates an ASCII 13 character, confirmed by clipboard viewer.
Please see this RegEx101.com snippet:
https://regex101.com/r/nxsiWT/1
TIA for resolving this issue.
The text was updated successfully, but these errors were encountered: