Skip to content

Commit

Permalink
fix: add doge#helpers#deepsubstitute() back
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoomen committed Oct 8, 2020
1 parent fec3267 commit 78adc13
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions autoload/doge/helpers.vim
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@ function! doge#helpers#deepextend(...) abort
return l:new
endfunction

"" @public
" Substitute input recursively.
function! doge#helpers#deepsubstitute(input, search, replacement, flags) abort
return eval(substitute(string(a:input), a:search, a:replacement, a:flags))
endfunction

"" @public
" Get the current filetype. Returns the original filetype if the current
" filetype is an alias.
Expand Down

0 comments on commit 78adc13

Please sign in to comment.