Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Nation names ending with underscores edge-case #7

Open
dithpri opened this issue Dec 12, 2021 · 0 comments
Open

BUG: Nation names ending with underscores edge-case #7

dithpri opened this issue Dec 12, 2021 · 0 comments

Comments

@dithpri
Copy link

dithpri commented Dec 12, 2021

The current API implementation will use toId() to convert nation names before submitting a request.
The implementation of toId is however slightly flawed: for a nation Foo_ it will return foo instead of the expected foo_.

This is an edge case, as there is currently only two nations in the world ending with an underscore (and none starting with one).

The obvious fix is to trim only whitespace, not underscores as well.

dithpri added a commit to dithpri/node-nsapi that referenced this issue Dec 12, 2021
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

No branches or pull requests

1 participant