Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upWhen pasting multiple lines into the rules editor they are joined together in a single line #64
Comments
|
Your probably have |
You probably meant:
As your rules are not valid and are rejected. Using the valid rules, I could not reproduce. However, I could reproduce after changing Important: I could only reproduce when copying from a text area, not from directly copying the above. The pasting of text is entirely handled by CodeMirror's editor, and from what's I've gathered, this also breaks other fancy editors which rely on clipboard events to work properly (example). |
|
I was investigating for a fix in CodeMirror, and as I was preparing to create a patch, I found out somebody else already submitted such patch, codemirror/CodeMirror#5383, so just updating with the latest CodeMirror library should fix the issue. |
|
The whole time I thought I was dealing with a uBO issue... Anyways, this issue is valid for both uBO and uMatrix, so the fix is the same. |
Prerequisites
Description
When pasting multiple lines into the rules editor they are joined together in a single line. This makes it a pain to manage the ruleset. I keep a lot of temporary rules on text files and paste them/load the website/revert when required. It worked properly before the new editor component was added. Tested copying from various text editors, with both line termination standards (Windows and Unix).
Steps to Reproduce
google.com * block
yahoo.com * block
google.com * block* yahoo.com * block
Your environment