You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The builtin function "find" doesnt seem to work, atleast not in the try brat online editor.
Code: "amogus".find "gus"
Ouput:
/home/brat/brat/core/core.lua:2184: attempt to call upvalue 'block' (a table value)
stack traceback:
/home/brat/brat/core/core.lua: in function 'block'
/home/brat/brat/core/core.lua:4440: in function 'each'
/home/brat/brat/core/core.lua:2189: in function '_m__temp1_find'
[string "string"]:41: in function '_m__temp3_run_underparsed'
[string "string"]:209: in function <[string "string"]:12>
stack traceback:
[string "string"]:336: in main chunk
[C]: in function 'xpcall'
/home/brat/brat/core/core.lua:1304: in function 'protect'
/home/brat/brat/bin/brat:137: in function 'run_string'
/home/brat/brat/bin/brat:162: in main chunk
[C]: at 0x5650922ed5b0
Interestingly .include? works but not find
The text was updated successfully, but these errors were encountered:
The builtin function "find" doesnt seem to work, atleast not in the try brat online editor.
Code:
"amogus".find "gus"
Ouput:
Interestingly
.include?
works but not findThe text was updated successfully, but these errors were encountered: