Bug report checklist
Name:
Mismatch between @label actual limit (13 characters) and stated limit (20 characters)
Where:
In the inventory
In the system log
When:
When using the @label command to label a container, labels 14-20 characters in length will not be accepted.
What:
Input: @label 1234567890abcdefghij
Error: "Error: the custom label may not exceed 20 characters."
Recreate:
1. "pick target" on a valid container, ie a Vaasi leather satchel.
2. attempt to apply a 14-character label, ie. @label 1234567890abcd
3. get error message
4. confirm label is unchanged
5. attempt to apply 13-character label, ie @label 1234567890abc
6. system message indicates label is applied
7. confirm label is applied.
Ideas:
I suspect the 'wrapper' text for the label is being included in the label length.
wrapper text:
' ()'
Given the wrapper text comprises 5 characters, I further suspect
an off-by-1 error in the label length comparison. something else is causing the comparison to be off, but I'm not sure what.
Suggested solutions:
A: fix the comparison to allow 20-character labels
B: fix the error text to communicate that labels may only be 13 characters max.