Show More
@@ -31,13 +31,13 b' def strip_preparer(value):' | |||
|
31 | 31 | return value |
|
32 | 32 | |
|
33 | 33 | |
|
34 | def slugify_preparer(value): | |
|
34 | def slugify_preparer(value, keep_case=True): | |
|
35 | 35 | """ |
|
36 | 36 | Slugify given value to a safe representation for url/id |
|
37 | 37 | """ |
|
38 | 38 | from rhodecode.lib.utils import repo_name_slug |
|
39 | 39 | if value: |
|
40 | value = repo_name_slug(value.lower()) | |
|
40 | value = repo_name_slug(value if keep_case else value.lower()) | |
|
41 | 41 | return value |
|
42 | 42 | |
|
43 | 43 |
General Comments 0
You need to be logged in to leave comments.
Login now