Minor changes, added example classes test

This commit is contained in:
mrfry 2021-05-04 10:28:20 +02:00
parent 8801bb96cd
commit d8b0c28471
4 changed files with 35 additions and 10 deletions

View file

@ -65,10 +65,7 @@ function getSubjNameWithoutYear(subjName: string): string {
// ---------------------------------------------------------------------------------------------------------
function simplifyString(toremove) {
return toremove
.replace(/\s/g, ' ')
.replace(/\s+/g, ' ')
.toLowerCase()
return toremove.replace(/\s/g, ' ').replace(/\s+/g, ' ').toLowerCase()
}
function removeStuff(
@ -92,7 +89,7 @@ function removeUnnecesarySpaces(toremove: string) {
return normalizeSpaces(toremove).replace(/\s+/g, ' ')
}
function compareString(
export function compareString(
s1: string,
s1a: Array<string>,
s2: string,