You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2012/09/19 20:43:27 UTC

[29/50] git commit: [#4896] Make re_path_portion_fragment actually keep 1-character fragments

[#4896] Make re_path_portion_fragment actually keep 1-character fragments

Signed-off-by: Cory Johns <jo...@geek.net>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/554f00f8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/554f00f8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/554f00f8

Branch: refs/heads/master
Commit: 554f00f82a03f3fedb970c5d83911c4cb1927a34
Parents: 996737b
Author: Cory Johns <jo...@geek.net>
Authored: Wed Sep 12 17:29:41 2012 +0000
Committer: Cory Johns <jo...@geek.net>
Committed: Wed Sep 12 17:29:41 2012 +0000

----------------------------------------------------------------------
 Allura/allura/lib/helpers.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/554f00f8/Allura/allura/lib/helpers.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/helpers.py b/Allura/allura/lib/helpers.py
index 1f16274..a48822c 100644
--- a/Allura/allura/lib/helpers.py
+++ b/Allura/allura/lib/helpers.py
@@ -36,7 +36,7 @@ from allura.lib.decorators import exceptionless
 from allura.lib import AsciiDammit
 from .security import has_access
 
-re_path_portion_fragment = re.compile(r'[a-z][-a-z0-9]+')
+re_path_portion_fragment = re.compile(r'[a-z][-a-z0-9]*')
 re_path_portion = re.compile(r'^[a-z][-a-z0-9]{2,}$')
 re_clean_vardec_key = re.compile(r'''\A
 ( # first part