Skip to content

Commit

Permalink
chore(get): allow shortname to be uppercase (DEV-1972) #346
Browse files Browse the repository at this point in the history
In DSP-APP, the project shortname is displayed in uppercase, so it might happen that it is copy-pasted from there. But currently, DSP-TOOLS insists that the shortname is lowercase, which is impractical.
  • Loading branch information
jnussbaum committed Mar 28, 2023
1 parent 7bb95df commit e0ce7d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dsp_tools/utils/project_get.py
Expand Up @@ -37,7 +37,7 @@ def get_project(project_identifier: str, outfile_path: str, server: str, user: s
if re.match("[0-9A-F]{4}", project_identifier): # shortcode
project = Project(con=con, shortcode=project_identifier)
elif re.match("^[\\w-]+$", project_identifier): # shortname
project = Project(con=con, shortname=project_identifier)
project = Project(con=con, shortname=project_identifier.lower())
elif re.match("^(http)s?://([\\w\\.\\-~]+:?\\d{,4})(/[\\w\\-~]+)+$", project_identifier): # iri
project = Project(con=con, shortname=project_identifier)
else:
Expand Down

0 comments on commit e0ce7d4

Please sign in to comment.