⌈⌋ branch:  freshcode


Check-in [bba6d0fc18]

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

Overview
SHA1:bba6d0fc18daed6d541c309a8764ad1996bf8892
Date: 2015-04-15 15:12:23
User: mario
Comment:Marked state_tag and scope_tags as static.
Tags And Properties
  • branch=trunk inherited from [82405bb421]
  • sym-trunk inherited from [82405bb421]
Context
2015-04-15
15:13
[a1206e67e3] Prepared default filter for short project `summary` field. Limited to 200 chars in the DB, but just 160 for current usage. (Still needs UI/submit form integration anyway.) (user: mario, tags: trunk)
15:12
[bba6d0fc18] Marked state_tag and scope_tags as static. (user: mario, tags: trunk)
15:11
[2a72d8ceec] Removed spurious $_SESSION dumping. (user: mario, tags: trunk)
Changes

Changes to tags.php.

794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
    }


    /**
     * Extract typical release tags.
     *
     */
    function scope_tags($s) {
        preg_match_all("/major|minor|bugfix|feature|security|documentation|hidden|cleanup/i", strtolower($s), $uu);
        return join(" ", array_unique($uu[0]));
    }

    /**
     * Extract typical release tags.
     *
     */
    function state_tag($s) {
        preg_match_all("/initial|alpha|beta|development|prerelease|stable|mature|historic/i", strtolower($s), $uu);
        return isset($uu[0][0]) ? $uu[0][0] : "";
    }

}




?>







|








|










794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
    }


    /**
     * Extract typical release tags.
     *
     */
    static function scope_tags($s) {
        preg_match_all("/major|minor|bugfix|feature|security|documentation|hidden|cleanup/i", strtolower($s), $uu);
        return join(" ", array_unique($uu[0]));
    }

    /**
     * Extract typical release tags.
     *
     */
    static function state_tag($s) {
        preg_match_all("/initial|alpha|beta|development|prerelease|stable|mature|historic/i", strtolower($s), $uu);
        return isset($uu[0][0]) ? $uu[0][0] : "";
    }

}




?>