diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/command_callback/test_elixir_mix_command_callbacks.vader | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/test/command_callback/test_elixir_mix_command_callbacks.vader b/test/command_callback/test_elixir_mix_command_callbacks.vader index 22d35eeb..67785881 100644 --- a/test/command_callback/test_elixir_mix_command_callbacks.vader +++ b/test/command_callback/test_elixir_mix_command_callbacks.vader @@ -13,13 +13,9 @@ Before: function! GetCommand(buffer) abort let l:command = ale_linters#elixir#mix#GetCommand(a:buffer) - let l:split_command = split(l:command, 'MIX_BUILD_PATH=[^ ]*\s') - - return l:split_command[0] . 'MIX_BUILD_PATH=TEMP' . l:split_command[1] + return substitute(l:command, 'MIX_BUILD_PATH=[^ ]\+', 'MIX_BUILD_PATH=TEMP', '') endfunction - - After: Restore |