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
[30/50] git commit: [#4896] tweak re_path_portion_fragment so that 1-
and 2- length fragments aren't dropped completely
[#4896] tweak re_path_portion_fragment so that 1- and 2- length fragments aren't dropped completely
Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/996737bc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/996737bc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/996737bc
Branch: refs/heads/master
Commit: 996737bca55288865363074ba299c002dad4792f
Parents: 4de3c39
Author: Dave Brondsema <db...@geek.net>
Authored: Tue Sep 11 16:02:38 2012 +0000
Committer: Dave Brondsema <db...@geek.net>
Committed: Tue Sep 11 16:02:38 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/996737bc/Allura/allura/lib/helpers.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/helpers.py b/Allura/allura/lib/helpers.py
index 62d0259..1f16274 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]{2,}')
+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