This patch adds support for exact matches to the CheatXtended mod console commands. It resolves ambiguities when two NPC or faction names are sub-strings of one another (e.g., rat_tailor vs. rat_tailors_wife).
NOTE: I generated this patch with AI, I don't know if it works, and it probably should be reviewed by a human who knows C++ better than I do. I haven't touched C++ since college, and I wasn't very good at it then either.
- Prioritizes Exact Matches: When you run a command (like
cheatx_set_opinion), the mod first checks if there is a case-insensitive exact match for the name you typed. If it finds one, it immediately targets that NPC/faction and ignores any other substring matches, resolving the ambiguity automatically without needing quotes. - Quote Handling (
CleanQuery): If you pass an argument wrapped in single (') or double (") quotes, the mod cleans the quotes and forces an exact-match check (d