Skip to content

Commit

Permalink
feat: short names for Vietnamese universities
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftpsh committed Dec 9, 2024
1 parent 0e1ccee commit ef18f09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/institution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export const shortenInstitutionName = (institution: string) => {
}

return institution
.replace(/University of Engineering and Technology/, "UET")
.replace(/Vietnam National University/, "VNU")
.replace(/University/, "U")
.replace(
/([A-Z])[a-z]+ ([A-Z])[a-z]+ Institute of Science and Technology/,
Expand Down

0 comments on commit ef18f09

Please sign in to comment.