⌈⌋ ⎇ branch:  freshcode


Check-in [a19ff10c97]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Decode sourceforge URLs to skip %20 for version extraction, also try to capture -beta and -rc suffixes.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: a19ff10c9728ef4fd62814f27699236f22122fa9
User & Date: mario 2014-11-22 21:31:11
Context
2014-11-25
16:46
Introduce `IS_ADMIN` shortcut, header stats for moderator infos, fix flagged entry clearing. check-in: 7ee36caef9 user: mario tags: trunk
2014-11-22
21:31
Decode sourceforge URLs to skip %20 for version extraction, also try to capture -beta and -rc suffixes. check-in: a19ff10c97 user: mario tags: trunk
21:30
Omit tags with just one reference from tag"cloud"; scale text down a bit. check-in: e0cdb1b5c1 user: mario tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to cron.daily/news_feeds.php.

56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
        }

        # per feed
        switch ($name) {

            // Extract project base names and version numbers
            case "sourceforge":
                if (preg_match("~^(http://sourceforge.net/projects/(\w+))/files/.+?(\d+(\.\d+)+).+?/download$~", $item->link, $m)) {
                    $output .= "<a href=\"$m[1]\">$m[2] <em>$m[3]</em></a>\n";
                    $i++;
                }
                break;

            // Extract project base names and version numbers
            case "distrowatch":







|







56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
        }

        # per feed
        switch ($name) {

            // Extract project base names and version numbers
            case "sourceforge":
                if (preg_match("~^(http://sourceforge.net/projects/(\w+))/files/.+?(\d+(\.\d+)+([-_. ](rc|beta|alpha|dev)([-._]?\d[.\d]*)?)?).+?/download$~", urldecode($item->link), $m)) {
                    $output .= "<a href=\"$m[1]\">$m[2] <em>$m[3]</em></a>\n";
                    $i++;
                }
                break;

            // Extract project base names and version numbers
            case "distrowatch":