mirror of
https://github.com/n08i40k/schedule-parser-next.git
synced 2025-12-06 17:57:45 +03:00
Добавление теста и некоторые переработки кода.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user