Skip to content

Commit ff0bc43

Browse files
authored
Merge pull request #899 from galaxyproject/usrname-validation
match username validation with toolshed's
2 parents c11835c + 8d01a28 commit ff0bc43

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

planemo/shed/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@
9696

9797
# TODO: sync this with tool shed impl someday
9898
VALID_REPOSITORYNAME_RE = re.compile(r"^[a-z0-9\_]+$")
99-
VALID_PUBLICNAME_RE = re.compile(r"^[a-z0-9\-]+$")
99+
VALID_PUBLICNAME_RE = re.compile(r"^[a-z0-9._\-]+$")
100+
100101

101102
# Generate with python scripts/categories.py
102103
CURRENT_CATEGORIES = [
@@ -1392,7 +1393,7 @@ def _build_error(descript):
13921393
)
13931394
if not(VALID_PUBLICNAME_RE.match(owner)):
13941395
msg = _build_error(
1395-
"Owner must contain only lower-case letters, numbers and '-'"
1396+
"Owner must contain only lower-case letters, numbers, dots, underscores, and '-'"
13961397
)
13971398
return msg
13981399

0 commit comments

Comments
 (0)