From d3e695cb5d87248f9299fb7c645c130965e371a7 Mon Sep 17 00:00:00 2001 From: Yichao Zhou Date: Fri, 13 May 2016 23:01:58 -0700 Subject: Fix regex bug when input_pattern contains '|' --- rplugin/python3/deoplete/deoplete.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rplugin/python3/deoplete') 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 <= -- cgit v1.2.3