Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DBRepo
Manage
Activity
Members
Labels
Plan
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FAIR Data Austria DB Repository
DBRepo
Merge requests
!284
Something went wrong on our end
Dev
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Dev
dev
into
master
Overview
0
Commits
10
Pipelines
0
Changes
3
Merged
Dev
Martin Weise
requested to merge
dev
into
master
Jun 13, 2024
Overview
0
Commits
10
Pipelines
0
Changes
3
0
0
Merge request reports
Viewing commit
0e9575a3
Prev
Next
Show latest version
3 files
+
7
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Verified
0e9575a3
Hotfix column mapping and more error messages in the frontend
· 0e9575a3
Martin Weise
authored
Jun 13, 2024
dbrepo-metadata-service/repositories/src/main/java/at/tuwien/mapper/MetadataMapper.java
+
3
−
2
View file @ 0e9575a3
Edit in single-file editor
Open in Web IDE
Show full file
@@ -829,8 +829,9 @@ public interface MetadataMapper {
final
Pattern
WHITESPACE
=
Pattern
.
compile
(
"[\\s]"
);
String
nowhitespace
=
WHITESPACE
.
matcher
(
data
).
replaceAll
(
"_"
);
String
normalized
=
Normalizer
.
normalize
(
nowhitespace
,
Normalizer
.
Form
.
NFD
);
String
slug
=
NONLATIN
.
matcher
(
normalized
).
replaceAll
(
""
);
final
String
name
=
slug
.
toLowerCase
(
Locale
.
ENGLISH
);
String
slug
=
NONLATIN
.
matcher
(
normalized
).
replaceAll
(
"_"
);
final
String
name
=
slug
.
toLowerCase
(
Locale
.
ENGLISH
)
.
replaceAll
(
"-"
,
"_"
);
log
.
debug
(
"mapping name {} to internal name {}"
,
data
,
name
);
return
name
;
}
Loading