diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-12-14 12:15:50 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-12-14 12:15:50 +0800 |
commit | d01289e9bf88270e593e48f9a454097592be974b (patch) | |
tree | 27aecb00b79ab44e3ad2ba25f1cbb39f99a0fb8b /script/files.lua | |
parent | 2a7333102a87bb55805ad83f443736545a825aab (diff) | |
download | lua-language-server-d01289e9bf88270e593e48f9a454097592be974b.zip |
fix #291
Diffstat (limited to 'script/files.lua')
-rw-r--r-- | script/files.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/files.lua b/script/files.lua index db33dab1..71981a83 100644 --- a/script/files.lua +++ b/script/files.lua @@ -367,7 +367,7 @@ end ---@param uri string ---@return boolean function m.isLua(uri) - local ext = uri:match '%.([^%.%/%\\]-)$' + local ext = uri:match '%.([^%.%/%\\]+)$' if not ext then return false end |