Skip to content

Commit

Permalink
add AI acronym
Browse files Browse the repository at this point in the history
  • Loading branch information
vigi86 committed Nov 13, 2020
1 parent 0cc3941 commit a94adb7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@ const _Student = {
/**
* Gets the acronym of the students study.
* @param {String} studyTitle
* @returns {String} I, ICS or WI
* @returns {String} AI, I, ICS or WI
*/
function getStudyAcronym(studyTitle) {
const studyTitles = {
"bachelor of science in information & cyber security": "ICS",
"bachelor of science in information": "I",
"bachelor of science in computer science": "I",
"bachelor of science in wirtschaftsinformatik": "WI",
"bachelor of science in informatik": "I"
"bachelor of science in informatik": "I",
"bachelor of science in artificial intelligence & machine learning": "AI"
}
studyTitle = studyTitle.toLowerCase().replace(/[0-9]/g, '').trim();
return studyTitles[studyTitle];
Expand Down Expand Up @@ -501,7 +502,7 @@ function createLoadingIcon() {
async function start() {
await i18n.init();
createLoadingIcon();

await getStudentInformations();
const modules = await ModuleParser.generateModuleObjects(_Student.studyAcronym);
generateHtml(modules);
Expand Down

0 comments on commit a94adb7

Please sign in to comment.