mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
runtime/msgpack: Fix msgpack#string that expects old string() behavior
This commit is contained in:
@@ -395,7 +395,8 @@ endfunction
|
||||
""
|
||||
" Dump floating-point value.
|
||||
function s:msgpack_dump_float(v) abort
|
||||
return string(type(a:v) == type({}) ? a:v._VAL : a:v)
|
||||
return substitute(string(type(a:v) == type({}) ? a:v._VAL : a:v),
|
||||
\'\V\^\(-\)\?str2float(''\(inf\|nan\)'')\$', '\1\2', '')
|
||||
endfunction
|
||||
|
||||
""
|
||||
|
Reference in New Issue
Block a user