Importing lessons fails due to wrong reg ex #54

Closed
opened 2022-08-12 18:47:21 +02:00 by hansegucker · 4 comments
Owner

46~0~92~45;~45;~12~11~0~~B~~~~~~n~~;18;~"Wp_Eb"~~34~0~67900~0~0~~21700,45~0~92~45;~45;~0~0~19000~~~~~~~~n~~;18;~"Wp_Eb"~~34~0~67900~0~0~~0 is not correctly parsed into
46~0~92~45;~45;~12~11~0~~B~~~~~~n~~;18;~"Wp_Eb"~~34~0~67900~0~0~~21700 and 45~0~92~45;~45;~0~0~19000~~~~~~~~n~~;18;~"Wp_Eb"~~34~0~67900~0~0~~0 but in much shorter parts.

The correct reg ex would be ((?:\"[^\"]+\"|[^,\"]+)*),?.

`46~0~92~45;~45;~12~11~0~~B~~~~~~n~~;18;~"Wp_Eb"~~34~0~67900~0~0~~21700,45~0~92~45;~45;~0~0~19000~~~~~~~~n~~;18;~"Wp_Eb"~~34~0~67900~0~0~~0` is not correctly parsed into `46~0~92~45;~45;~12~11~0~~B~~~~~~n~~;18;~"Wp_Eb"~~34~0~67900~0~0~~21700` and `45~0~92~45;~45;~0~0~19000~~~~~~~~n~~;18;~"Wp_Eb"~~34~0~67900~0~0~~0` but in much shorter parts. The correct reg ex would be `((?:\"[^\"]+\"|[^,\"]+)*),?`.
Author
Owner

assigned to @hansegucker

assigned to @hansegucker
Author
Owner

created branch 54-importing-lessons-fails-due-to-wrong-reg-ex to address this issue

created branch [`54-importing-lessons-fails-due-to-wrong-reg-ex`](/AlekSIS/official/AlekSIS-App-Untis/-/compare/master...54-importing-lessons-fails-due-to-wrong-reg-ex) to address this issue
Author
Owner

mentioned in merge request !228

mentioned in merge request !228
nik closed this issue 2022-08-13 12:29:50 +02:00
Owner

mentioned in commit bf269702b9

mentioned in commit bf269702b931820b1c99b21e5b19f68695f38c65
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
aleksis/AlekSIS-App-Untis#54
No description provided.