Closed rpherbig closed 8 years ago
Here is the correct text:
[combat-trainer]>stow coral
You pick up a medium chunk of coral.
You open your pouch and put the chunk of coral inside, closing it once more.
I'm thinking we can just anchor the loot to the end of the string. The current loot regex is /\b#{noun}/i
I'd suggest changing that to /\b#{noun}$/i
I'll make that change locally and run it to see if anything goes haywire.
On Tue, May 24, 2016 at 3:18 PM, Robert Uhl notifications@github.com wrote:
I'm thinking we can just anchor the loot to the end of the string. The current loot regex is /\b#{noun}/i I'd suggest changing that to /\b#{noun}$/i
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/rpherbig/dr-scripts/issues/393#issuecomment-221369256
I looked at combat-trainer (LootProcess), but the regex there is /\b#{item}/
. Is that where the change needs to be made?
b82749b19bff2f8f90cc663e759ae033fa447451
"Coral deerskin scarf" matches "coral".