From 6d53089cc1857255be7f7a33c139128c092d6f9b Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 9 Aug 2017 23:33:20 +0900 Subject: [PATCH] Allow escaping term starting with | Close #444 --- src/pattern.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pattern.go b/src/pattern.go index 3432930..c98f8dd 100644 --- a/src/pattern.go +++ b/src/pattern.go @@ -61,7 +61,7 @@ var ( func init() { _splitRegex = regexp.MustCompile(" +") - _escapedPrefixRegex = regexp.MustCompile("^\\\\['!^]") + _escapedPrefixRegex = regexp.MustCompile("^\\\\['!^|]") clearPatternCache() clearChunkCache() }