wangqr / Aegisub

Win64 nightly builds available at GHA artifact, also at following link:
https://ftp.wangqr.tk/aegisub/
Other
799 stars 49 forks source link

_G.unicode.len(orgline.text_stripped:gsub("hello world", "lua")) 这是错在哪里? #58

Closed xiaomingguohe closed 4 years ago

xiaomingguohe commented 4 years ago

这段代码执行的时候出现如下错误: Runtime error in template expression: Expected 1 arguments, got 2 Expression producing error: _G.unicode.len(orgline.text_stripped:gsub("hello world", "lua")) Template with expression: !_G.unicode.len(orgline.text_stripped:gsub("hello world", "lua"))!

orgline.text_stripped:gsub("hello world", "lua") 这个是有两个返回值吗?但是我测试了只有一个返回值

wangqr commented 4 years ago

似乎与 https://github.com/wangqr/Aegisub/issues/35#issuecomment-584026098 类似

xiaomingguohe commented 4 years ago

大佬真厉害,respect!!