elven-fire / StoreManager

An Elven Fire utility to simplify town usage by automatically generating and maintaining the stores and universities.
0 stars 0 forks source link

Unescaped characters in search strings #4

Open sarinilla opened 3 years ago

sarinilla commented 3 years ago

Ran into this issue with the CLI:

rinir:~/elven-fire/StoreManager (test/combo:%)$ python3 ELFStoreManagerCLI.py -t MyTestTown -pi "Potion of MA+6"

No items found matching 'Potion of MA+6'

rinir:~/elven-fire/StoreManager (test/combo:%)$ python3 ELFStoreManagerCLI.py -t MyTestTown -pi "Potion of MA\+6"

Purchased Potion of MA+6 (FMV $600): $606
MyTestTown purchases made and saved to:
  towns/MyTestTown.town
  towns/MyTestTown.town.txt

The plus sign appears to break the search, possibly due to unescaped inclusion in a regex? The backslash provides a solid workaround for now.