attemp to fix pattern for quoted text

This commit is contained in:
AFCMS 2021-04-06 23:02:04 +02:00
parent e0fcfc1888
commit 25495d2dcd
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ mcl_commands.types = {
return S("Word is invalid!")
end
end},
quotestring = {[["([^ ]+)"]],
quotestring = {'["]+(.+)["]+',
function(res, pointer)
if res[pointer] == tostring(res[pointer]) then
return nil, string.sub(tostring(res[pointer]), 2, #res[pointer]-1), pointer+1