diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-07-09 14:10:48 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-07-09 14:10:48 +0800 |
commit | 6c4df5860bfc6e1f011dbfebaaad4ef63bd2a542 (patch) | |
tree | 3973328f9ea2b29a3fa6c567627a96196116054e /script/core | |
parent | ae3a20cfd5ea89919326a6499c5a3c93fdfe2120 (diff) | |
download | lua-language-server-6c4df5860bfc6e1f011dbfebaaad4ef63bd2a542.zip |
fix #192
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/hover/hover.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/hover/hover.lua b/script/core/hover/hover.lua index 5140edb2..76505ca4 100644 --- a/script/core/hover/hover.lua +++ b/script/core/hover/hover.lua @@ -370,7 +370,7 @@ local function hoverAsNumber(source) return nil end local raw = source[2] - if not raw:find '[^%-%d%.]' then + if not raw or not raw:find '[^%-%d%.]' then return nil end return { |