From ecd0f1d966209742382e5bd4591bafc88152a697 Mon Sep 17 00:00:00 2001 From: aycabta Date: Thu, 30 May 2019 18:29:26 +0900 Subject: Use negative lookahead and start_with? --- lib/reline/line_editor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 805053fbff..af23367063 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -763,7 +763,7 @@ class Reline::LineEditor i = 0 while i < @byte_pointer do slice = @line.byteslice(i, @byte_pointer - i) - if quote and slice =~ /\A(?