mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Fix spacing after addresses in double quotes.
Optimize match for leading numeric date.
This commit is contained in:
parent
341ad1d804
commit
84d9703786
@ -30,12 +30,10 @@ while (<CHANGELOG>) {
|
|||||||
s/\s*$//;
|
s/\s*$//;
|
||||||
|
|
||||||
# Make sure there are exactly 2 spaces before the e-mail.
|
# Make sure there are exactly 2 spaces before the e-mail.
|
||||||
s/(^\w.*\w)\s+</$1 </;
|
s/(^\w.*[^\s])\s+</$1 </;
|
||||||
|
|
||||||
# Make sure there are exactly 2 spaces after numeric dates.
|
# Make sure there are exactly 2 spaces after numeric dates.
|
||||||
if (/[0-9]+-[0-9]+-[0-9]+\w/) {
|
s/(^[0-9]+-[0-9-]+)\s+/$1 /;
|
||||||
s/(^[0-9-]+)\s+/$1 /;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Up to 7 spaces and tab or up to 8 spaces -> tab.
|
# Up to 7 spaces and tab or up to 8 spaces -> tab.
|
||||||
if (/^( {1,7}\t| {1,8})(.*)/) {
|
if (/^( {1,7}\t| {1,8})(.*)/) {
|
||||||
|
Loading…
Reference in New Issue
Block a user