diff options
author | Yichao Zhou <broken.zhoug@gmail.com> | 2016-05-13 23:01:58 -0700 |
---|---|---|
committer | Yichao Zhou <broken.zhoug@gmail.com> | 2016-05-13 23:01:58 -0700 |
commit | d3e695cb5d87248f9299fb7c645c130965e371a7 (patch) | |
tree | 2ea76d9f01612b54d68aad9ba35e3ddfa5ed4f7b /rplugin/python3/deoplete | |
parent | 8cf31618977a544c097c8caeda864c07e2d5b47d (diff) | |
download | deoplete.nvim-d3e695cb5d87248f9299fb7c645c130965e371a7.zip |
Fix regex bug when input_pattern contains '|'
Diffstat (limited to 'rplugin/python3/deoplete')
-rw-r--r-- | rplugin/python3/deoplete/deoplete.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rplugin/python3/deoplete/deoplete.py b/rplugin/python3/deoplete/deoplete.py index 15da181..d911d4e 100644 --- a/rplugin/python3/deoplete/deoplete.py +++ b/rplugin/python3/deoplete/deoplete.py @@ -327,7 +327,7 @@ class Deoplete(logger.LoggingMixin): context['syntax_name'] in disabled_syntaxes): return 1 if (input_pattern != '' and - re.search(input_pattern + '$', context['input'])): + re.search('(' + input_pattern + ')$', context['input'])): return 0 skip_length = (context['event'] != 'Manual' and not (min_pattern_length <= |