Skip to content

Commit 4757d9c

Browse files
author
Steffengreiner
authored
Remove replacement of hyphens with underscores in project spaces (#326)
1 parent f04a13a commit 4757d9c

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/main/groovy/life/qbic/datamodel/dtos/projectmanagement/ProjectSpace.groovy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ final class ProjectSpace {
4444
private static String formatSpaceName(String name) {
4545
def capitalizedName = name.trim().toUpperCase()
4646
def refactoredName = capitalizedName.replaceAll("\\s+", "_")
47-
.replaceAll("-", "_")
4847
return refactoredName
4948
}
5049

src/test/groovy/life/qbic/datamodel/dtos/projectmanagement/ProjectSpaceSpec.groovy

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,4 @@ class ProjectSpaceSpec extends Specification {
3131
thrown(IllegalArgumentException)
3232

3333
}
34-
35-
def "Dashes are replaced by underscores"() {
36-
given:
37-
String projectSpaceName = "my-new-space"
38-
39-
when:
40-
ProjectSpace space = new ProjectSpace(projectSpaceName)
41-
42-
then:
43-
space.name.equals("MY_NEW_SPACE")
44-
}
4534
}

0 commit comments

Comments
 (0)