You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When parsing the following (From Hazhalm Testing Grounds):
RESERVATION_ENDS_MINUTES=8059, -- ---== Warning! ==---- Your reservation of this chamber will end in # [minute/minutes].RESERVATION_ENDS_SECONDS=8060, -- ---== Warning! ==---- Your reservation of this chamber will end in # [second/seconds].
It deletes the latter part (starting with =), leaving these entries as:
Specifically, original_line_parts = line.split("=") should be original_line_parts = line.split("=", 1) to avoid splitting on = that appear in the comment string.
The text was updated successfully, but these errors were encountered:
Actual Behavior:
When parsing the following (From Hazhalm Testing Grounds):
It deletes the latter part (starting with
=
), leaving these entries as:Running
zone_texts
again will just delete these lines, since they no longer match a zone text.Expected Behavior
It should leave these entries untouched, because they are correct.
This is caused by https://github.com/LandSandBoat/UpdateExtractor/blob/main/zone_texts.py#LL238C34-L238C34
Specifically,
original_line_parts = line.split("=")
should beoriginal_line_parts = line.split("=", 1)
to avoid splitting on=
that appear in the comment string.The text was updated successfully, but these errors were encountered: