Card Search
I play MTGA on PC. I wanted to share a small bug that I found. When I search for the card "Vito, Thorn of the Dusk Rose" as "Vito" it does not appear on my cards collection. But when I search for it as "thorn" it does appear.
-
ErdinyoBarboza#27674 commented
I managed to replicate and use the solution given by nevergreen#77405
It seems the Turkish OS on my PC as well causes deck search to cause the same bug -
nevergreen#77405 commented
I've found the reason why and I think I have a solution for it. Since I also work as a developer I know that this is a very common mistake we do while localizing.
THE PROBLEM
When you search for a card that includes the "i" character there is no result. But when you search for a card with "ı" character the results show up.POSSIBLE SOLUTION
The reason this is happening is, I use a Turkish OS on my PC. And in Turkish alphabet we have these characters "ı i I İ". When you convert these characters to uppercase it becomes as I've shown below.ı ----> I
i ----> İ
In programming, to make a proper search query we always covert input strings to either all uppercase or lowercase. And at this point it fails because instead of using .toUppercase() or .toLowercase() methods, I think you have used toLocaleUpperCase() or toLocaleLowerCase() methods. So when I try to search for the keyword "vito" it converts to "VİTO" not "VITO" or "light" becomes "LİGHT" not "LIGHT". And therefore the search query fails. I think the very same reason also causes the "?dualfaced" query to fail somehow.