Transfers supposedly fail for display case/inventory moves for items with "<" in name
Transferring from display case to inventory:
<b>Vial of <i>jus de larmes</i> (8)</b> moved from case to inventory.
Results in:
Transfer failed for Vial of <i>jus de larmes</i> (8)
Ditto for transfers in the other direction.
The transfers actually succeeded, but KoLmafia's model of inventory and the display case did not update correctly.
The following patterns in DisplayCaseRequest:
will not work well with items containing a "<".
Transferring from display case to inventory:
<b>Vial of <i>jus de larmes</i> (8)</b> moved from case to inventory.
Results in:
Transfer failed for Vial of <i>jus de larmes</i> (8)
Ditto for transfers in the other direction.
The transfers actually succeeded, but KoLmafia's model of inventory and the display case did not update correctly.
The following patterns in DisplayCaseRequest:
Code:
public static final Pattern ITEM_PATTERN1 = Pattern.compile( "<b>([^<]*)</b> moved from inventory to case" );
public static final Pattern ITEM_PATTERN2 = Pattern.compile( "<b>([^<]*)</b> moved from case to inventory" );