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

RegEx() 在大量快速调用时有概率出现错误 #41

Open
zhenzh opened this issue Jan 16, 2021 · 0 comments
Open

RegEx() 在大量快速调用时有概率出现错误 #41

zhenzh opened this issue Jan 16, 2021 · 0 comments

Comments

@zhenzh
Copy link

zhenzh commented Jan 16, 2021

重现方法:
for i=1,100000 do Print(tostring(i)..": "..RegEx("test", "(^.*$)")) end

Lua error: :1: bad argument #1 to ? (string expected, got nil)
stack traceback:
:0: in function </Users/ibm/go-mud/script/frame/timer.lua:5>
:1: in function <:0>
/Users/ibm/go-mud/script/client.lua:182: in main chunk

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