|
a/Allura/allura/lib/helpers.py |
|
b/Allura/allura/lib/helpers.py |
|
... |
|
... |
34 |
# Reimport to make available to templates
|
34 |
# Reimport to make available to templates
|
35 |
from allura.lib.decorators import exceptionless
|
35 |
from allura.lib.decorators import exceptionless
|
36 |
from allura.lib import AsciiDammit
|
36 |
from allura.lib import AsciiDammit
|
37 |
from .security import has_access
|
37 |
from .security import has_access
|
38 |
|
38 |
|
39 |
re_path_portion_fragment = re.compile(r'[a-z][-a-z0-9]{2,}')
|
39 |
re_path_portion_fragment = re.compile(r'[a-z][-a-z0-9]+')
|
40 |
re_path_portion = re.compile(r'^[a-z][-a-z0-9]{2,}$')
|
40 |
re_path_portion = re.compile(r'^[a-z][-a-z0-9]{2,}$')
|
41 |
re_clean_vardec_key = re.compile(r'''\A
|
41 |
re_clean_vardec_key = re.compile(r'''\A
|
42 |
( # first part
|
42 |
( # first part
|
43 |
\w+# name...
|
43 |
\w+# name...
|
44 |
(-\d+)?# with optional -digits suffix
|
44 |
(-\d+)?# with optional -digits suffix
|