Page 2 of 2
Re: Ignore large block of text
Posted: Wed May 08, 2024 10:53 pm
by AlexFeren
psguru wrote: Tue May 07, 2024 3:17 pm
Please provide screenshots illustrating the issue.
It's exactly as above:
Code: Select all
:
text
:
set private-key "-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAACmFlczI1Ni1jdHIAAAAGYmNyeXB0AAAAGAAAABCGR2b7mr
:
base 64 text
base 64 text
:
qcRimIuw==
-----END OPENSSH PRIVATE KEY-----"
:
text
:
set private-key "-----BEGIN OPENSSH PRIVATE KEY-----
MIIDnjCCA1ygAwIBAgIIX2FQJDyoPPMwCwYJYIZIAWUDBAMCMIGdMQswCQYDVQQG
:
base 64 text
base 64 text
:
tSKBjT/R3vZOU6+VvWvx4yJN
-----END OPENSSH PRIVATE KEY-----"
:
text
:
and ALL Lines within text blocks delimited by "-----BEGIN OPENSSH PRIVATE KEY----- and -----END OPENSSH PRIVATE KEY-----" need to be excluded from comparison.
Re: Ignore large block of text
Posted: Thu May 09, 2024 7:58 am
by psguru
I meant screenshots with your options and EDP comparison results.
Re: Ignore large block of text
Posted: Sun May 12, 2024 2:48 am
by AlexFeren
Rather than back/forth. I’ve provided content - demonstrate how you’d achieve the requirement using that content. If you can, then problem’s solved.
Re: Ignore large block of text
Posted: Sun May 12, 2024 11:18 am
by psguru
You seem to be oddly uninterested to see this issue resolve. Please see below.

- Screenshot 2024-05-12 121355.png (86.68 KiB) Viewed 39244 times

- Screenshot 2024-05-12 121440.png (75.18 KiB) Viewed 39244 times

- Screenshot 2024-05-12 121558.png (145.15 KiB) Viewed 39244 times
Is this what you wanted to achieve?
Re: Ignore large block of text
Posted: Sun May 12, 2024 8:15 pm
by AlexFeren
Thank you, that works and I appreciate your effort for the workaround... Except, it is un-intuitive, never mind that a Base-64 blobs aren't comments.
Firstly, my ".config" files can come from multiple vendor appliances - all will have different "comments", so, doing this every time I load a different file is unwieldy.
Secondly, the right place to introduce a new "Ignore (multi-line) text block" feature is exactly in your screenshot - it's in "Text Comparison Option", below "Ignore parts of each line", not as a comment for a file type.
I think it wouldn't be tremendous effort for developer (you?) to introduce a new "Ignore (multi-line) text block" feature.
Re: Ignore large block of text
Posted: Mon May 13, 2024 4:10 pm
by psguru
Except, it is un-intuitive, never mind that a Base-64 blobs aren't comments.
Yes, it's a workaround and a solution to your problem. And why do you care if's it not really comments?
Firstly, my ".config" files can come from multiple vendor appliances - all will have different "comments", so, doing this every time I load a different file is unwieldy.
You can use the OR (vertical bar) expression to expand the regex I provided, thus covering multiple syntax options.
Secondly, the right place to introduce a new "Ignore (multi-line) text block" feature is exactly in your screenshot - it's in "Text Comparison Option", below "Ignore parts of each line", not as a comment for a file type.
If/when this is implemented, it will still be done via a regular expression, only the one that can span multiple lines (like for the comments). We'll add the following to the wish list:
Option to ignore multi-line text blocks
Re: Ignore large block of text
Posted: Wed May 15, 2024 5:21 pm
by AlexFeren
psguru wrote: Mon May 13, 2024 4:10 pm
Except, it is un-intuitive, never mind that a Base-64 blobs aren't comments.
Yes, it's a workaround and a solution to your problem. And why do you care if's it not really comments?
I care because... See attached image.