diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2014-12-31 10:50:07 +0100 |
---|---|---|
committer | Alberto Bertogli <albertito@blitiri.com.ar> | 2015-01-11 22:18:10 +0100 |
commit | aaf2968538121f9443f1aea2156814fede5a5648 (patch) | |
tree | 5a131eb25b94e6ea87a37dce190406468b950307 | |
parent | 420afd3206d59ca76309087234f838edb32d7b8b (diff) | |
download | git-arr-fork-aaf2968538121f9443f1aea2156814fede5a5648.zip |
route: commit: match only hexadecimal rather than digits + full alphabet
A human-readable representation of a Git SHA1 commit ID is composed
only of hexadecimal digits, thus there is no need to match against
the full alphabet.
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
-rwxr-xr-x | git-arr | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -217,7 +217,7 @@ def summary(repo): def branch(repo, bname, offset = 0): return dict(repo = repo.new_in_branch(bname), offset = offset) -@bottle.route('/r/<repo:repo>/c/<cid:re:[0-9a-z]{5,40}>/') +@bottle.route('/r/<repo:repo>/c/<cid:re:[0-9a-f]{5,40}>/') @bottle.view('commit') @with_utils def commit(repo, cid): |