-
Notifications
You must be signed in to change notification settings - Fork 432
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
OpenComputers' overridden string.gsub fails on non-string inputs #1999
Comments
Doesn't for me?
Are you sure? Also not sure what you mean by not overriding upper? |
Can confirm; the behaviour @fnuecke observed occurs on Lua 5.3.1 as well. |
Try numeric inputs.
|
Ah, so it's a numbers thing. Blergh. |
Dream-Master
pushed a commit
to GTNewHorizons/OpenComputers
that referenced
this issue
Jul 18, 2020
closes MightyPirates#1999 (cherry picked from commit f73dd9e)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Apparently, Lua 5.2 will automatically run tostring() on all "string" inputs for the gsub/etc. string functions overriden by OC, thus making OC's implementation incompatible when a non-string input is given. Other functions overridden by machine.lua must be checked in the same manner.
Also, why do you override lower and not upper?
The text was updated successfully, but these errors were encountered: