mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-02 17:59:14 +02:00
feat:#5 added free rooms api endpoint
This commit is contained in:
@@ -47,9 +47,7 @@ func clearAndSeparateRooms(events []struct {
|
||||
// sport rooms don't have to be separated
|
||||
if event.Course != "Sport" {
|
||||
//split rooms by comma, tab, newline, carriage return, semicolon, space and non-breaking space
|
||||
room = strings.FieldsFunc(event.Rooms, functions.IsSeparator(
|
||||
[]rune{',', '\t', '\n', '\r', ';', ' ', '\u00A0'}),
|
||||
)
|
||||
room = functions.SeperateRoomString(event.Rooms)
|
||||
} else {
|
||||
room = append(room, event.Rooms)
|
||||
}
|
||||
|
Reference in New Issue
Block a user