mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Minor changes, added example classes test
This commit is contained in:
parent
8801bb96cd
commit
d8b0c28471
4 changed files with 35 additions and 10 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue