bugGNU nano - Bugs: bug #61347, the email syntax does not color...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #61347: the email syntax does not color final esses in URLs

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Mon 18 Oct 2021 09:48:31 AM UTC  
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  Benno Schulenberg <bens> Open/Closed:  Open

Mon 18 Oct 2021 10:18:57 AM UTC, comment #1: 

Fixed in git, commit 483538f8, by using character class [:space:] instead of \s.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Mon 18 Oct 2021 09:48:31 AM UTC, original submission:  

To reproduce, run:

echo "http://bad.urls" >poor.eml
nano poor.eml

See that the "s" at the end of the URL is not colored.
Now type a backslash before the "s".  See that the "\" is not colored either.

The problem is that the backslash is not special inside a bracket expression, which means that [^\s] does not exclude whitespace but excludes backslashes and esses.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-10-18 bens Summarythe email syntax does not color finall esses in URLs => the email syntax does not color final esses in URLs
    2021-10-18 bens StatusNone => Fixed

    Back to the top


    Powered by Savane 3.7