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

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

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>
Group administrator
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>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-12-16 bens Open/ClosedOpen Closed
    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.13-758e.
    Corresponding source code