Changeset 820 in openpam


Ignore:
Timestamp:
Oct 9, 2014, 2:34:03 PM (6 years ago)
Author:
Dag-Erling Smørgrav
Message:

Small tweak to avoid marking up initialisms and acronyms like GCC, API
and PAM as code. As a side effect, this simplifies the code for CVEs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/misc/history2wiki.pl

    r819 r820  
    3434use warnings;
    3535
    36 my $CVEURL = "http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-";
     36my $CVEURL = "http://web.nvd.nist.gov/view/vuln/detail?vulnId=";
    3737
    3838while (<>) {
     
    4646        $changes =~ s/^ - ([A-Z]+): / - '''$1''' /gm;
    4747        $changes =~ s/([\w.-]+\(\d*\))/`$1`/gs;
    48         $changes =~ s/([^'])\b([A-Z_]{2,})\b([^'])/$1`$2`$3/gs;
    49         $changes =~ s/`CVE`-(\d{4}-\d+)/[$CVEURL$1 CVE-$1]/gs;
     48        $changes =~ s/([^'])\b([A-Z_]{4,})\b([^'])/$1`$2`$3/gs;
     49        $changes =~ s/(CVE-\d{4}-\d+)/[$CVEURL$1 $1]/gs;
    5050        $changes =~ s/([.!?])\n +(\w)/$1  $2/gs;
    5151        $changes =~ s/(\S)\n +(\S)/$1 $2/gs;
Note: See TracChangeset for help on using the changeset viewer.