Merge pull request #947 from jokva/heuristic-short-circuit-strip
Short circuit when line terminator is found first
This commit is contained in:
@@ -68,7 +68,7 @@ inline Itr find_terminator( Itr begin, Itr end, Term terminator ) {
|
||||
|
||||
auto pos = terminator( begin, end );
|
||||
|
||||
if( pos == end ) return end;
|
||||
if( pos == begin || pos == end) return pos;
|
||||
|
||||
auto qbegin = std::find_if( begin, end, RawConsts::is_quote() );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user