diff options
author | w0rp <devw0rp@gmail.com> | 2017-11-16 09:34:24 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-11-16 09:34:24 +0000 |
commit | 71d34fc0c6eba0935b97a8d9dc5fd29c432be452 (patch) | |
tree | 04b6a5f7894b2e40e8717b71aebab319c8accd86 /autoload | |
parent | 1d65e5692f7075bad6806d88eb11961ea32d3e7d (diff) | |
download | ale-71d34fc0c6eba0935b97a8d9dc5fd29c432be452.zip |
Fix #1132 - Parse react error codes again for ESLint
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/handlers/eslint.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/autoload/ale/handlers/eslint.vim b/autoload/ale/handlers/eslint.vim index adfb65be..ff590162 100644 --- a/autoload/ale/handlers/eslint.vim +++ b/autoload/ale/handlers/eslint.vim @@ -133,8 +133,9 @@ function! ale#handlers#eslint#Handle(buffer, lines) abort let l:obj.type = 'W' endif + " The code can be something like 'Error/foo/bar', or just 'Error' if !empty(get(l:split_code, 1)) - let l:obj.code = l:split_code[1] + let l:obj.code = join(l:split_code[1:], '/') endif for l:col_match in ale#util#GetMatches(l:text, s:col_end_patterns) |