Добавление теста и некоторые переработки кода.

This commit is contained in:
2024-09-25 22:42:13 +04:00
parent a6c84302b2
commit 811feff173
5 changed files with 93 additions and 41 deletions

View File

@@ -33,7 +33,7 @@ export class LessonTimeDto {
}
static fromString(time: string): LessonTimeDto {
time = time.replaceAll(".", ":");
time = time.trim().replaceAll(".", ":");
const regex = /(\d+:\d+)-(\d+:\d+)/g;