Skip to content

Commit

Permalink
Sscsci 1028 fix language concatenation when dialectReference/mrdReren…
Browse files Browse the repository at this point in the history
…ce exists (#1647)
  • Loading branch information
benouaer authored Oct 10, 2024
1 parent ae423fb commit 89068fe
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,15 @@ public Language(String reference, String dialectReference) {
}

public String getFullReference() {
String fullReference = reference;
if (nonNull(dialectReference)) {
reference = String.format("%s-%s", reference, dialectReference);
fullReference = String.format("%s-%s", reference, dialectReference);
}

if (nonNull(mrdReference)) {
reference = mrdReference;
fullReference = mrdReference;
}
return reference;
return fullReference;
}

public String getName() {
Expand Down

0 comments on commit 89068fe

Please sign in to comment.