Skip to content

fix(parser): strip apostrophes from queue names - #175

Closed
ertugrulkutluer wants to merge 1 commit into
vinaghost:mainfrom
ertugrulkutluer:fix/queue-building-apostrophe
Closed

ertugrulkutluer wants to merge 1 commit into
vinaghost:mainfrom
ertugrulkutluer:fix/queue-building-apostrophe

Conversation

@ertugrulkutluer

@ertugrulkutluer ertugrulkutluer commented Oct 14, 2026 •

Copy link
Copy Markdown

Summary

BuildingLayoutParser.GetQueueBuilding only removed spaces from the building name, so a queued Hero's Mansion became Hero'sMansion. UpdateBuildingCommand.IsValidQueueBuilding could not parse that as BuildingEnums.HerosMansion and stopped the bot:

Bot must stop
Cannot parse Hero'sMansion. Is language English ?

The game was already in English. The same would happen for any other building name containing an apostrophe.

Fix

Also strip straight (') and typographic (’) apostrophes when cleaning the queue name.

Testing

Passed

Queue building names were only stripped of spaces, so "Hero's Mansion"
became "Hero'sMansion" and failed to parse as BuildingEnums.HerosMansion,
stopping the bot with "Cannot parse Hero'sMansion. Is language English ?".
Strip straight and typographic apostrophes too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vinaghost

Copy link
Copy Markdown
Owner

this was fixed in #173

@vinaghost vinaghost closed this Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants