MacroScript Functions that use case sensitive comparisons on function name should be changed to use case insensitive comparisons #3013
Labels
bug
good first issue
A good issue for people wanting to contribute to start with
Hacktoberfest
little or no coding
Little or no coding is required
Describe the bug
As pointed out in #3011 there are several macro script functions that use case sensitive comparison within the function to check which function was called.
These should all be case insensitive searches, if they are not at best user gets a message saying function is not defined which is inconsistent with other functions, in the worst case the wrong function gets executed.
The list of files that definitely need to be checked/modified
To Reproduce
Steps to reproduce the behaviour:
Run any of the above functions with the wrong case.
Expected behaviour
All MTScript functions should be case insensitive as that's how the parser is treating them.
Screenshots
If applicable, add screenshots to help explain your problem.
MapTool Info
Desktop (please complete the following information):
Additional context
For anyone wanting to tackle this feel free to split it up into several issues to make it easier to tackle, but please not dozens of PRs at the same time with just one or two done in each of them (unless you are already editing that file for another change).
The text was updated successfully, but these errors were encountered: